This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes static inner classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "static inner classes" Watch "static inner classes" New topic
Author

static inner classes

josephine chen
Ranch Hand

Joined: Oct 29, 2002
Posts: 216

top level inner class or top level class or static inner classes or nested top level classses mean the same

please clear my confusion about this static inner class
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
Except for "top level class", I agree (at least for the exam). "Top level class" means package level class for those purposes.


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
josephine chen
Ranch Hand

Joined: Oct 29, 2002
Posts: 216
I just want to confirm what u have said
class test{} --this is a top level class
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
It is, if it is not contained in any other class.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: static inner classes