This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes non-static inner class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply locked New topic
Author

non-static inner class

Honey Khumalo
Greenhorn

Joined: Mar 28, 2008
Posts: 6
WHAT IS THE MAIN PURPOSE OF USING THE NON-STATIC INNER CLASS?
*IS IT TO GET ACCESS TO OTHER CLASSES IN OTHER PACKAGES?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Please keep it down. Thank you.


[My Blog]
All roads lead to JavaRanch
Neha Agarwal
Greenhorn

Joined: Mar 12, 2008
Posts: 16
non-static inner classes keep a reference to the outer class allowing it to access member variables of the outer class
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Honey,

You've been asked several times to stop shouting in these forums.
If you continue to do this we will have to assume that you are deliberately being rude which violates our number one rule, "Be Nice".
Threads that contains questions which are not nice are subject to being deleted.

-Ben


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: non-static inner class
 
Similar Threads
Static I.C extending I.C
static inner class
static variables
Inner class & serialize
Have a question about inner class