Can a class have a static inner class?



Can a class have a static inner class?..

Answer / Namita Dabral

"Yes, a class can have a static nested class which is also known as a static inner class. Such classes can only access the static members of their enclosing class and are declared using the static keyword."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What are loops in java? What are three types of loops?

1 Answers  


Explain about instanceof operator in java?

1 Answers  


why are there separate wait and sleep methods? : Java thread

1 Answers  


What is meant by method overriding?

1 Answers  


What is the synonym of procedure?

1 Answers  


what is the difference between the "protected and default" modifiers?

8 Answers  


Tell me are there implementations for sorting and searching in the java libarary?

1 Answers  


Explain what is encapsulation?

1 Answers  


Catch(Exception e){ } in that what is Exception and purpose of that in that place exactly?

3 Answers  


Difference between hashCode() & equals()?

3 Answers   HCL,


What is the difference between size and length in java?

1 Answers  


What is the difference between variable & constant?

1 Answers  


Categories