A

Admin • 825.56K Points
Coach

Q. What will be the output for the below code ?

Code:
1. public class Test{
2. public static void main(String[] args){
3. byte i = 128;
4. System.out.println(i);
5. }
6. }
  • (A) 128
  • (B) 0
  • (C) Compilation fails with an error at line 3
  • (D) Compilation fails with an error at line 4
  • Correct Answer - Option(C)
  • Views: 10
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.