LinkedIn Interview Question

What do you know about inner classes ?

Interview Answer

Anonymous

May 26, 2016

Inner class exist inside regular classes and act like enclosing members of the outer class. Advantage of inner class is its unique type, enclosing security and access. Disadvantage is that it takes more memory load on the JVM. IDE support is lacking. To get at inner class members, you have to go through parent app and make getters/settings.