1.

Which of these can be returned by the operator &?(a) Integer(b) Boolean(c) Character(d) Integer or BooleanI got this question in exam.My question comes from Literals & Variables topic in division Data Types, Variables and Arrays of Java

Answer»

Right choice is (d) INTEGER or BOOLEAN

Best EXPLANATION: We can use binary ampersand operator on integers/chars (and it returns an integer) or on BOOLEANS (and it returns a boolean).



Discussion

No Comment Found

Related InterviewSolutions