A
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);
int result = (true?a&b:a|b)>3?120:150;
System.out.println(result);
- Correct Answer - Option(B)
- Views: 8
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.