Pregunta de entrevista de CHECK24

What is the anonymous class in java?

Respuesta de la entrevista

Anónimo

11 de dic de 2019

are like local class or inner class they don’t have a name and they enable you to make your code more concise and they enable you to declare and instantiate a class at the same time. when you want to use a local class only once.And you don’t have access it inside another class