posted 18 years ago
Hi Sudhakar
Inner Classes were introduced in Java1.1
and are used for specific purposes.
An inner class is a nested class that is not explicitly or implicitly declared static. Inner classes may not declare static initializers or member interfaces. Inner classes may not declare static members, unless they are compile-time constant fields
# Nested classes that are not inner classes may declare static members.
# Since Interfaces are always implicitly static so they are never considered to be inner classes.
Below are some other variants of Class
Nested Class (Static Inner Class)
Local Class
Anonymous Class
[ September 28, 2006: Message edited by: Pratibha Malhotra ]
~ Pratibha Malhotra<br /> <br />Sun Certified Java Programmer<br />SCEA 1.4 (In Progress)<br />~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />"Many of life's failures are people who did not realize how close they were to success when they gave up!!"