local inner class
If a class is declared within a class method, such a class is called a local inner class. In C++, Kotlin, or Python, it is still called a local class; but in Java, it belongs to nested class.
If a class is declared within a class method, such a class is called a local inner class. In C++, Kotlin, or Python, it is still called a local class; but in Java, it belongs to nested class.