A
Q. What is the output of Java code snippet below?
Code:
final int a = 25, b=33;
String name = !true?"Dino":"Tom";
System.out.println(name);
String name = !true?"Dino":"Tom";
System.out.println(name);
- Correct Answer - Option(C)
- Views: 16
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.