Inner Class Cheatsheet
Inner Class Cheat sheet for Quick Revision
- Inner class is member of enclosing class.
- Outer class reference is required to initiate inner class.
- Inner class are of 4 type.
- Inner classes defined within method are method local inner class.
- Method local inner class can not access method local variable.
- Final & Abstract are the only modifiers available to method local inner class.
- Ananymous inner class don’t have any name.
- Inner classes having Static modifier are known as Static inner class.
- Static nested class can not access non static member of outer class.
Trackback from your site.

Comments (2)
Joe
| #
You should include examples.
Reply
admin
| #
Hi Joe,
Given article is only for cheatsheet thats why i have not included examples.
If you want to learn about the Inner class you can look @ this article(http://javabeginnerstutorial.com/core-java-tutorial/inner-class/)
I have also written two examples related to Inner class.
http://javabeginnerstutorial.com/learn-by-example-3/learn-by-example-inner-class/
Feel free to visit these links. In case you have any question related to Inner class do let me know.
Thanks
Reply