A
Q. What is the output of Java code snippet?
Code:
short k=1;
k += 2;
System.out.println(k);
k += 2;
System.out.println(k);
- Correct Answer - Option(C)
- Views: 12
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.