Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

static inner classes

 
josephine chen
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Except for "top level class", I agree (at least for the exam). "Top level class" means package level class for those purposes.
 
josephine chen
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just want to confirm what u have said
class test{} --this is a top level class
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is, if it is not contained in any other class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic