Tuesday, 19 April 2011

Can a method which is not in the definition of the superclass of an anonymous class be invoked on that anonymous class reference?

 No. There is no this reference available in the static method .The static method class can not have access to any members of the outer class other than static members.

No comments:

Post a Comment