bhaskarreddy
INNERCLASSS
2 Answer(s)      5 years and 7 months ago
Posted in : Java Interview Questions
Advertisement
View Answers

November 9, 2009 at 10:58 AM


Hi,

Inner class is defined within a Class. Example is:

public Class A{


private class b{

}


}

More at http://www.roseindia.net/help/java/i/inner-classes-in-java.shtml

Thanks


November 9, 2009 at 11:00 AM


Hi Friend,

The inner class can access to the methods of the container class.Through the inner class, you can access the local final varaibles.It provide alternate interface to an existing class and can implement custom enumerations.

For more information, please visit the following link:

http://www.roseindia.net/java/master-java/inner.shtml

Thanks









Related Tutorials/Questions & Answers: