Java - Online Test - Operator - javasearch.buggybread.com


Share

Search Java Test Questions


 223 test questions in repository.




Java - Test Questions on 'Operator' - 2 questions found


Which of the following is true for == operator ?Core Java
For primitives, == checks if the variables on left and right have same data type
For primitives, == checks if the variables on left and right have same value
For Objects, == checks if the references on left and right have same data type
For Objects, == checks if the references on left and right have same value

  == operator  equality

Which of the following is equivalent to following logic ?

Not X && Not Y
Core Java
x || Y
Not(X || Y)
Not(X && Y)
Not X && Y

  logical operator







comments powered by Disqus