This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
How can it be nested and top level at the same time? Well, whatever craziness is happening there, I would have to say the method is false because inner classes can have static stuff too. (although I've never tried it, I'm pretty sure they can) Anyone tried compiling this?
"How can it be nested and top level at the same time?" I read that you have Peter van der Linden's Just Java 2? Could you check page 235, Table 9-1? This nomenclature has driven more people than myself crazy before...!
Tony Alicea Senior Java Web Application Developer, SCPJ2, SCWCD
Heck, "top-level nested" is fine. It's when they talk about "static inner" classes that the arguments start. Prasad- A top-level nested class is Sun's official term for what is often called a static inner class (or static nested, which is better really), e.g.
As you can see, it can declare static methods and variables, as well as non-static (not shown).
"I'm not back." - Bill Harding, Twister
Joined: Nov 22, 2008
The reason I posted this question is that I got this question in one of the mock tests Prasad