What is the difference between inner class and nested class?

Java Programming Language >   Class, Object and Methods in java >   About Java Tutorial  

Short Question

1626


Answer:

When a class is defined within a scope of another class, then it becomes inner class. If the access modifier of the inner class is static, then it becomes nested class.


This Particular section is dedicated to Question & Answer only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.