Đ Đức Trọng Member Sep 19, 2021 #1 What will be the output of the following Java code? Code: 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
What will be the output of the following Java code? Code: 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
D Dương Mạnh Cường New member Sep 19, 2021 #2 Answer: d Explanation: None. output: Code: $ javac binary.java $ java binary 10001 This section of our 1000+ Java MCQs focuses on Object & Math classes of Java Programming Language. Upvote 0 Downvote
Answer: d Explanation: None. output: Code: $ javac binary.java $ java binary 10001 This section of our 1000+ Java MCQs focuses on Object & Math classes of Java Programming Language.