aspose file tools*
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
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: static inner classes