DEVFYI - Developer Resource - FYI

Can an inner class declared inside of a method access local variables of this method?

Java Interview Questions and Answers (part 1)


(Continued from previous question...)

44. Can an inner class declared inside of a method access local variables of this method?

It's possible if these variables are final.

(Continued on next question...)

Other Interview Questions