File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes inner classes 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)
Bookmark "inner classes " Watch "inner classes " New topic

inner classes

Abdul Latif
Ranch Hand

Joined: Jul 18, 2001
Posts: 89
can we make an instance of an inner class outside the class in which we have the inner class.
please explain in details
Jose Botella
Ranch Hand

Joined: Jul 03, 2001
Posts: 2120
Why not giving it a try before?

SCJP2. Please Indent your code using UBB Code
Ragu Sivaraman
Ranch Hand

Joined: Jul 20, 2001
Posts: 464
Originally posted by Jose Botella:
[B]Why not giving it a try before?

Also, if Test extends containing
we can call class Inner() directly from an instance method in Test without new Containing() construct, (coz Test inherits all the members from containing

Jose Botella
Ranch Hand

Joined: Jul 03, 2001
Posts: 2120
Similarly we could use new Nested() within a static method of the subclass.
wood burning stoves
subject: inner classes
Similar Threads
Inner class
Getting inner class functionalities without using INNER CLASS
Can inner classes be overidden ?
can't create enum in inner class