0 votes
in JAVA by
What are the disadvantages of using inner classes?

1 Answer

0 votes
by

There are the following main disadvantages of using inner classes.

Inner classes increase the total number of classes used by the developer and therefore increases the workload of JVM since it has to perform some routine operations for those extra classes which result in slower performance.

IDEs provide less support to the inner classes as compare to the top level classes and therefore it annoys the developers while working with inner classes.

Related questions

+1 vote
asked May 6, 2021 in JAVA by SakshiSharma
0 votes
asked Apr 8, 2021 in JAVA by SakshiSharma
...