Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Why inner class can not have static data, static fields or nested class?

Reply
Thread Tools

Why inner class can not have static data, static fields or nested class?

 
 
Robin
Guest
Posts: n/a
 
      06-06-2007
Quote from <Thinking in Java>, chapter 8:
"Fields and methods in ordinary inner classes can only be at the outer
level of a class, so ordinary inner classes cannot have static data,
static fields, or nested classes."
Will anybody tell me what means "at outer level of a class"? Thanks
very much!

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why nested scope rules do not apply to inner Class? Cousson, Benoit Python 1 08-12-2008 11:12 AM
Why inner classes can not have static members? bearice@gmail.com Java 8 02-09-2008 03:02 AM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
referring to static fields of enclosing class from static inner class? bugbear Java 4 08-23-2006 08:26 AM
Nested Class, Member Class, Inner Class, Local Class, Anonymous Class E11 Java 1 10-12-2005 03:34 PM



Advertisments