11.What will be the output?
public class Main{
public static void main(String args[]) {
System.out.println(10 + 20 + "Java" + 30 + 40);
}
}
-
A. 60Java
-
B. 30Java3040
-
C. 1020Java3040
-
D. Compilation error
30Java3040
30Java3040
12.How do bitwise operators help in optimizing performance in Java applications?
-
A. They are faster than arithmetic operations
-
B. They reduce memory usage
-
C. They eliminate floating-point operations
-
D. All of the above
All of the above
All of the above