Qus:    What are the advantages of Java inner classes?
Jul 07, 2021 15:06 1 Answers Views: 9 ROHAN
Prev Next
Answers (1)
JOSHUA Jul 16, 2021 14:03
Answer:   There are two types of advantages of Java inner classes.

1. Nested classes represent a special type of relationship that is it can access all the members (data members and methods) of the outer class including private.
2. Nested classes are used to develop a more readable and maintainable code because it logically groups classes and interfaces in one place only.
3.Code Optimization: It requires less code to write.

Post Your Answer
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect