P

Priyanka Tomar • 35.28K Points
Coach

Q. What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
Integer i = new Integer(257);
byte x = i.byteValue();
System.out.print(x);
}
}

  • (A) 0
  • (B) 1
  • (C) 256
  • (D) 257
  • Correct Answer - Option(B)
  • Views: 36
  • Filed under category JAVA

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.


Question analytics