File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 14688
    
  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