D
Q. What is the output of the following code?
Code:
int x = 10;
int y = 20;
int z = x + y;
System.out.println(z);
int y = 20;
int z = x + y;
System.out.println(z);
- Correct Answer - Option(C)
- Views: 230
- Filed under category JAVA
Discusssion
Login to discuss.