Question: what is the difference between inner class and anonymous class in java?
Answer: 1 Answer. Local inner class means, a class declared inside a method. And, anonymous means, a class created on the FLY.