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
Can a class declared as private be accessed outside it’s package?
What is constructor in java ?
What is data string?
What is local variable and instance variable?
What is the difference between sop and work instruction?
Why are arrays useful in java?
What is getclass () getname () in java?
What is java reflection api?
What are the advantages of java inner classes?
Can we make a constructor final?
What is object in java?
What is early binding and late binding in java?
Is nullpointerexception checked or unchecked?
Write a java program to print fibonacci series?
What is deserialization?