How-to articles, tricks, and solutions about STATIC-CLASSES

Java inner class and static nested class

In Java, an inner class is a class that is defined within another class. An inner class has access to the members (fields and methods) of the outer class, and can be used to encapsulate the implementation of a component of the outer class.

Static Classes In Java

In Java, a static class is a class that can be accessed without an instance of the class. A static class is defined by adding the static keyword to the class declaration.