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: