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 REST with Spring (video course) this week in the Spring 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.
wood burning stoves
subject: Inner class
It's not a secret anymore!