This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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 ??
Innner Class
doubt on Inner class
Inner Classes
Inner Classes