Solved

Listeners Are Typically Implemented as Inner Classes

Question 71

Multiple Choice

Listeners are typically implemented as inner classes.Which of the following statements is NOT true about inner class access to variables from the surrounding class?


A) Inner class objects created inside a static method can only access static variables.
B) Local variables that are accessed by an inner class method must not change after they have been initialized.
C) Methods of an inner class cannot access variables from the surrounding class.
D) An inner class can access instance variables of the surrounding class if the instance variable belongs to the object that constructed the inner class object.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions