Which class definition compiles?

Which class definition compiles?
A.

B.

C.

D.

Download Printable PDF. VALID exam to help you PASS.

5 thoughts on “Which class definition compiles?

    1. Its not D because in Anonymous inner class the scope is reduced from public to default. Interface methods are implicitly
      public

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.