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 overriding in java?
How do you do descending order in java?
What is the differences between heap and stack memory in java? Explain
Differentiate between stringbuffer and string?
What restrictions are placed on method overriding in java programming?
What does int argc char * argv [] mean?
What is the implementation of destroy method in java. Is it native or java code?
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
What is meant by object?
How do you create a bulleted list?
What is a parameter in java?
What is defined as false sharing in the context of multithreading?
What is functional interface in java example?
How do you pass by reference?
Can an object be null?