These are called Nested Classes. Classes can be static which most developers are aware of, henceforth some classes can be made static in Java . Java supports Static Instance Variables, Static Methods, Static Block, and Static Classes. The class in which the nested class is defined is known as the Outer Class.
Can a class be made static?
These are called Nested Classes. Classes can be static which most developers are aware of, henceforth some classes can be made static in Java . Java supports Static Instance Variables, Static Methods, Static Block, and Static Classes. The class in which the nested class is defined is known as the Outer Class.