Share on Google+Share on Google+

Member Classes

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.



Posted on: June 16, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

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.

Discuss: Member Classes  

Post your Comment

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

I don't understand ..what is the real use of these classes in the realtime 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
September 13, 2011

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