Java Developer Question:
Download Questions PDF

Can you please explain the difference between static and a non-static inner class in Java Programming?

Answer:

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.

Download Java Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Described object's lock and which object's have locks in Java Programming?Can you please explain the difference between Window and a Frame in Java Programming?