File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Inner class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Inner class" Watch "Inner class" New topic

Inner class

soumyanil Kayal

Joined: Jun 05, 2000
Posts: 5
How is an inner class diferent from a subclass in terms of:
Whether an inner class can extend any other class?
Can it be declared static,private?
deekasha gunwant
Ranch Hand

Joined: May 06, 2000
Posts: 396
An inner class
--- is a class which is defined inside another class
--- can be static as well as private
--- can extend a class or implement an interface
--- it can access all the members of enclosing class (including private memnbers)
Thunthu Ganapathy

Joined: May 09, 2000
Posts: 19
Also would like to add
* All non static nested classes are called inner classes.
I agree. Here's the link:
subject: Inner class
Similar Threads
is inner class can be static . what is the purpose of inner class ??
Inner Classes
Inner Classes
Innner Class
doubt on Inner class