Oracle Certified Professional Java Se 11 Developer · Free Practice Question Hard

Question 46

Question ID: UKOCP84358


Given code:


What will be the result of compiling and executing Test class?

  • A 1234
  • B No output
  • C Compilation error
  • D Runtime exception
Reveal correct answer

Correct answer: C

Explanation

UKOCP84358:

Semicolon is missing just before the statement i1.m1(); Wrong syntax of anonymous inner class.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need