Q. What is the output of the Java code snippet below?
Code:int a = 4, b=7; int result = (true?a&b:a|b)>3?120:150; System.out.println(result);
β
Correct Answer: (B)
120
int a = 4, b=7; int result = (true?a&b:a|b)>3?120:150; System.out.println(result);
You must be Logged in to update hint/solution