Answer Posted / karthee
Static inner class
can only access the static members of the enclosing class.
not associated with the instance of the enclosing class.
can only have static members.
Nonstatic class
is associated with the instance of the enclosing class.(we
need it first to access the nonstatic class)
can access all the member of the encosing class.
is like other members of the enclosing class.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is string builder?
What do you know about the garbate collector?
Can a vector contain heterogenous objects?
Explain about member inner classes?
Can private method static?
What is the difference between instanceof and isinstance?
Explain java heap space and garbage collection?
Can you explain the usages of class.forname()?
What happens when main () method is declared as private?
What are constants?
What is a for loop in java?
define polymorphism in java
What is difference between string and new string?
What are the access modifiers in java?
What does %d do in java?