What is the result?

Given:

What is the result?
A. An exception is thrown at runtime.
B. -3
C. -2
D. The compilation fails.

Download Printable PDF. VALID exam to help you PASS.

One thought on “What is the result?

  1. D

    Because local variables referenced from an inner class must be final or effectively final. But “y” is not.

Leave a Reply

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


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