Java OCA OCP Practice Question 1556

Question

Which of the following are NOT valid operators in Java?

Select 4 options

  • A. sizeof
  • B. <<<
  • C. instanceof
  • D. mod
  • E. equals


Correct Options are  : A B D E

Note

For A.

It is in C++ but not in java.

For B.

For left shifts there is no difference between shifting signed and unsigned values so there is only one left shift '<<' in java.

For D.

No such thing.

For E.

boolean equals(Object o) is a method in java.lang.Object. It is not an operator.




PreviousNext

Related