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,763
Messages
2,569,562
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top