hiexam
oracle · 1z0-829 · Q603 · multiple_choice · topic_1

Given: //IMG// What is the result?

Given: //IMG// What is the result?
  • A.Compilation fails.
  • B.there
  • C.hello
  • D.A NumberFormatException is thrown.
Explanation
Selected Answer: C package q10; public class Main { void print(int i) { System.out.println("hello"); } void print(long j) { System.out.println("there"); } public static void main(String[] args) { new Main().print(0b1101_1010); } } // Result: // hello

Reference: examtopics_top_comment

Practice with progress tracking

Sign in to track wrong answers, get spaced-repetition reminders, and run timed exam mode.