Java OCA OCP Practice Question 1750

Question

Which of the following expressions evaluate to true?.

Select the two correct answers.

  • (a) (false | true)
  • (b) (null != null)
  • (c) (4 <= 4)
  • (d) (!true)
  • (e) (true & false)


(a) and (c)

Note

The expression (4 <= 4) is true.

The null literal can be compared, so (null != null) yields false.




PreviousNext

Related