Solved

Listeners Are Typically Implemented as Inner Classes

Question 70

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents