1
JavaBeginner#fundamentals
A class defined inside a method body, visible only within that method. It can access effectively final local variables of the enclosing scope, useful for encapsulating logic used only locally.
void process() {
class Helper { void help() { System.out.println("helping"); } }
new Helper().help();
}