Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Java Master-java Member Classes

Related Tutorials


 
 

Share on Google+Share on Google+

Member Classes

Advertisement
The class defined in the body of a class is called a member class.

Member Classes

     

The class defined in the body of a class is called a member class. Member classes can also use instances of the same class without explicit delegation. Only the member classes can be declared as static.

Local classes

Local classes are similar to the local initializer that are declared inside the block of code of  a program. Local classes are rarely defined within a method of a class. The local classes can be instantiated many times whenever required. Local classes includes the all the features of a member class.

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: June 16, 2009

Related Tutorials

Discuss: Member Classes  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:2
Narens
March 28, 2011
Member Classes /Nested classes

I don't understand ..what is the real use of these classes in the realtime world...like here we are using for developing an webapplication strtus,spring kind of frameworks...!! I know there will be an use of these nested classes in product development/system side programming ? But in a situation where these clsses are used and give me a classic/concrete example. Thanks
JohnMary
September 13, 2011
JAVA QUESTION

HOW DO I WRITE A PROGRAM TO DEMOSTRATE THE USE OF MEMBERS IN? a)System class b)Object class Thank you!
DMCA.com