menu

Java Operators


1. What is the result of the expression true && false?

1

0

1

0


2. Which of the following operators is used to perform a bitwise AND operation?

&

&&

|

||


3. What is the result of the expression 10 / 3.0?

3.333333

3

4

3


4. What is the result of the expression "Hello" + "World"?

Hello World

HelloWorld

Hello+World

HelloWorld!


5. What is the result of the expression 4 % 2?

0

1

2

4


6. What is the result of the expression true || false?

1

0

1

0


7. What is the result of the expression 5 >= 5?

1

0

1

0


8. What is the result of the expression 1 + 2 + "3"?

33

6

123

6


9. Which of the following operators is used to compare two values for not equal to?

!=

==

>=

<=


10. What is the result of the expression true && false?

1

0

1

0