A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

Can a constructor be private and how are this() and super() method used with constructor?

0 Answers   Flextronics, Hexaware,


These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }

0 Answers   HCL,


when to use ArrayList and when to use HashMap in webApplication.

1 Answers  


What is Yield() method when we r using this ? tell exactly

2 Answers  


why we import both packages java.awt.*; and java.awt.event.*; as java.awt.*; can import all classes na. then what is the need of importing java.awt.event.*; ?

3 Answers  






When we can access the static data member without creating the object what is the need of the object in java.

5 Answers   Airhub, ssinformatics,


what are literals in java?

2 Answers  


What is intern method in java?

0 Answers  


If there is no implementation of MARKER INTERFACE in java. Then how compiler come to know about specification.

2 Answers  


What kind of variables can a class consist?

0 Answers  


what is jms? features of jms

2 Answers   CTS,


What is the difference between I ++ and ++ I in java?

0 Answers  


Categories