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

R

Robin

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,189
Members
46,734
Latest member
manin

Latest Threads

Top