5 years ago in java.lang Package

What is the output of this 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
Loading...
Next Question

Overall Stats

Attempted 111
Correct 20
Incorrect 47
Viewed 44

Answers

Guest
Guest
bruh
bruh - 3 weeks ago

bruh from Guwahati, India is saying 1 is correct answer

Vaibhav Bisht
Vaibhav Bisht - 3 weeks ago

Vaibhav Bisht from Dehradun, India is saying 257 is correct answer

Cos Sinus
Cos Sinus - 4 weeks ago

Cos Sinus from Casablanca, Morocco is saying 256 is correct answer

Awa Kone
Awa Kone - 4 weeks ago

Awa Kone from Berrechid, Morocco is saying 257 is correct answer

AHMED SOULIMANI
AHMED SOULIMANI - 1 month ago

AHMED SOULIMANI from Casablanca, Morocco is saying 256 is correct answer

Related Questions

Which of the following will compile correctly?

  • [A] System.out.println(Math.max(x));
  • [B] System.out.println(Math.random(10,3));
  • [C] System.out.println(Math.round(20));
  • [D] System.out.println(Math.sqrt(10));

Which of these methods is used to check for infinitely large and small values?

  • [A] isInfinite()
  • [B] isNaN()
  • [C] Isinfinite()
  • [D] IsNaN()

Which of these is wrapper for simple data type float?

  • [A] float
  • [B] double
  • [C] Float
  • [D] Double