Question d’entretien chez CHECK24

What is the anonymous class in java?

Réponse à la question d'entretien

Utilisateur anonyme

11 déc. 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