Thursday, March 12, 2009

What is the diffrence between inner class and nested class (CoreJava)

Question :What is the diffrence between inner class and nested class? (CoreJava)
Answer :When a class is defined within a scope od another class, then it becomes
inner class.
If the access modifier of the inner class is static, then it becomes nested
class.

No comments: