Home
MCQs
Java MCQs
Operators
Java MCQs

Java MCQs - Operators

There are many operators in Java to manipulate operations on variables. You may find groups of operators such as Arithmetic Operators, Relational Operators, Bitwise Operators, Logical Operators, Assignment Operators and Ternary Operators.

11. What is the right output of this program ?

A. -50,-49,-50

B. -51,-51,-52

C. -49,-50,-51

D. -51,-50,-51

Answer: D

12. What is the right output of this program ?

A. 3,12

B. 0,12

C. 3,0

D. 3,3

Answer: A

13. What is the right output of this program ?

A. true,true

B. false,true

C. 0,true

D. 0,1

Answer: B

14. What is the right output of this program ?

A. true

B. false

Answer: A

15. What is the right output of this program ?

A. true

B. false

C. Hello 1

D. Hello 2

Answer: C