What is the difference between a static and a non-static inner class?

Answer :
A non-static inner class may have object instances that are associated with instances of the class's outer class. A static inner class does not have any object instances.

0 comments:

Post a Comment

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