5 years ago in java.lang Package

What is the output of this program?


class binary {
public static void main(String args[]) {
int num = 17;
System.out.print(Integer.toBinaryString(num));
}
}

[A] 1001
[B] 10011
[C] 11011
[D] 10001
Loading...
Next Question

Overall Stats

Attempted 132
Correct 47
Incorrect 26
Viewed 59

Answers

Guest
Guest
bruh
bruh - 3 weeks ago

bruh from Guwahati, India is saying 10011 is correct answer

Vaibhav Bisht
Vaibhav Bisht - 3 weeks ago

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

Zo Go
Zo Go - 3 weeks ago

Zo Go from Casablanca, Morocco is saying 10001 is correct answer

Cos Sinus
Cos Sinus - 3 weeks ago

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

AHMED SOULIMANI
AHMED SOULIMANI - 1 month ago

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

Related Questions

Which of these is wrapper for simple data type float?

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