Pergunta de entrevista da empresa CHECK24

What is the anonymous class in java?

Resposta da entrevista

Sigiloso

11 de dez. 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