Q&A on Inner classes
Q 1. What modifiers can be used with a local inner class ?
A local inner class may be final or abstract
Q 2. Can an inner class declared inside of a method access local variables of this method ?
It's possible, if these variables are final.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.