Can an anonymous class be declared as implementing an interface and extending a class?

Answer :
An anonymous class may implement an interface or extend a superclass, but may not be declared to do both.

0 comments:

Post a Comment

 
Copyright © Interview Questions and answers - Blogger Theme by BloggerThemes & freecsstemplates - Sponsored by Internet Entrepreneur