What is nested top-level class?



What is nested top-level class?..

Answer / Ankita Chauhan

A nested top-level class is a non-static inner class declared outside any other class (it's not a member of an enclosing class). It can be instantiated independently from the outer class and does not require an instance of the outer class to exist.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is meant by class and object in java?

1 Answers  


What is meant by local variable and instance variable?

1 Answers  


What is the buffer limit?

1 Answers  


Write POJO class as a key to hashmap???

2 Answers  


Which are the two subclasses under exception class?

1 Answers  


Can we have multiple classes in a single file?

1 Answers  


Explain the private protected method modifier?

1 Answers  


When we will use an Interface and Abstract class?

9 Answers  


What is jvm? Why is java called the platform independent programming language?

1 Answers  


What is the use of default method in interface in java?

1 Answers  


How do you create immutable object in java?

1 Answers  


can we create object for static class in java

14 Answers   IAP Company, IBM, Marlabs, mPortal, TCS,


Categories