Solved

Which of the Following Statements About an Inner Class Is

Question 54

Multiple Choice

Which of the following statements about an inner class is true?


A) An inner class may not be declared within a method of the enclosing scope.
B) An inner class may only be declared within a method of the enclosing scope.
C) An inner class can access variables from the enclosing scope only if they are passed as constructor or method parameters.
D) The methods of an inner class can access variables declared in the enclosing scope.

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