bhaskarreddy
INNERCLASSS
2 Answer(s)      3 years and 6 months ago
Posted in : Java Interview Questions

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 Pages:

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.