✏️ Explanatory Question

What is the difference between inner class and nested class?

👁 1,495 Views
📘 Detailed Answer
💡

Answer with Explanation

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.