C
Q. Find the output of the following program.
Code:
public class Solution{
public static void main(String[] args){
byte x = 127;
x++;
x++;
System.out.print(x);
}
}
public static void main(String[] args){
byte x = 127;
x++;
x++;
System.out.print(x);
}
}
- Correct Answer - Option(A)
- Views: 264
- Filed under category JAVA
Discusssion
Login to discuss.