Inner class: classes that are defined within other classes.
The nesting is a relationship performed between two different classes.
An inner class can access private members and data.
Inner classes have clearly two benefits: o Name control o Access control. Anonymous class: Anonymous class is a class defined inside a method without a name.
It is instantiated and declared in the same method.
Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website.
If you are using this website then its your own responsibility to understand the content of the website