Herbert Schildt in The Complete Reference Java 2 says,"Because it is static, it must access the members of its enclosing class through an object. That is, it cannot refer to members of its enclosing class directly. Because of this restriction, static nested classes are seldom used."

Can we use static nested classes practically? If yes, please demonstrate it with help of an example program.

jwenting commented: lazy flooder -3
Ezzaral commented: Really lame just reposting others questions. -1
Sturm commented: Idiot +0

Recommended Answers

All 6 Replies

get lost. You (or was that someone else) was told this already just a few days ago.

Jishnu was the one who asked a few days ago. This guy is definitely just reposting questions at this point and hopefully on the fast track to a ban.

How dare he?! This does not make sense at all! He is reposting the question I had asked some time back in a separate thread. Does he think the people at DaniWeb are fools ?? He is filling the C and C++ forums also with silly questions. Hopefully he will be banned.

I wonder why this thread is not closed...

closed

commented: Thank you for banning that guy. +2
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.