A
Q. What is the output of the Java code snippet below?
Code:
int a = 20, b=30;
boolean result = a&b?true:false;
System.out.println(result);
boolean result = a&b?true:false;
System.out.println(result);
- Correct Answer - Option(D)
- Views: 17
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.