Labels

Monday, June 11, 2012

Can an inner class be defined inside a method?

Yes it can be defined inside a method and it can access data of the enclosing methods or a formal parameter if it is final.

No comments:

Post a Comment