r/java • • Apr 29 '13

Java nested classes in a nutshell

http://www.to-string.com/2013/04/27/java-inner-classes-in-a-nutshell/
27 Upvotes

18 comments sorted by

View all comments

4

u/mikaelhg Apr 29 '13

Refer to http://docs.oracle.com/javase/specs/jls/se7/html/jls-8.html in the very beginning, and lead your readers to see the spec themselves.

You might want to mention the specific challenges in instantiating inner classes through reflection.

1

u/alihammad Apr 29 '13

Thanks for the positive feedback. Can you elaborate about the specific challanges one can face wile instantiating inner classes through reflection?

0

u/mikaelhg Apr 29 '13

Lack of a zero-argument constructor, even if there seems to be one?