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 Top level inner class, nested class, 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)
Bookmark "Top level inner class, nested class, inner class, " Watch "Top level inner class, nested class, inner class, " New topic
Author

Top level inner class, nested class, inner class,

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I've seen a lot of topics involving these naming conventions. I am a little bit confused. Since the Java Certification book doesn't use nested class at all. I am assuming that top level inner class means static member inner class, nested class means non-static member inner class?
Thanks in advance.
Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065
Bill Brodgen, Java2 Exam Cram.
p.82
"What is a nested class?
Generally speaking, a nested class is a member of another class. However, it is common to speak of the static members as nested and the nested classes that are members of instances of the enclosing class as inner classes. Indeed you are most likely to read about inner classes only, but the more general term is nested classes."

Uncontrolled vocabularies
"I try my best to make *all* my posts nice, even when I feel upset" -- Philippe Maquet
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
So, to put it in another way:
Static member classes can be referred as nested classes. Non-static member classes are referred as inner classes more oftenly though people are using inner classes for both of them?
What about top-level inner class? It means Static member classes?
Thanks!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Top level inner class, nested class, inner class,
 
Similar Threads
Traps to be aware of in any SCJP test !!!!! :)
Inner Classes
(top level class) vs (a nested top level class)
Top-level classes
Inner Class and Final Variables