Pergunta de entrevista da empresa LinkedIn

What do you know about inner classes ?

Resposta da entrevista

Sigiloso

26 de mai. de 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.