DEVFYI - Developer Resource - FYI

What is the difference between a static and a non-static inner class?

Java Interview Questions and Answers (part 2)


(Continued from previous question...)

244. What is the difference between a static and a non-static inner class?

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.

(Continued on next question...)

Other Interview Questions