A
Q. What is the output of the Java code snippet with Ternary operator?
Code:
int num = false?10:20;
System.out.println(num);
System.out.println(num);
- Correct Answer - Option(B)
- Views: 9
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.