Programming Languages Java Objective
Jan 02, 2013

What will be the output of the following code?

 

 public class Solve{
    public static void main(String[] args) {
         byte a=127;
         a++;
         a++;
         System.out.println(a);
    }
}

Choose the correct answer:
A) 128
B) 129
C) -127
D) Compilation error
Detailed Explanation

No explanation available.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback