Home / Programming MCQs / JAVA MCQs / Question

S

Sandeep • 6.47K Points
Tutor III

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

Code:
public class Test
  { 
       public static void main(String[] args)
  {
       byte i = 128;
       System.out.println(i); 
       } 
 }
(A) 128
(B) 0
(C) Compilation fails with an error at line 3
(D) None of these

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.