Sollicitatievraag bij CHECK24

What is the anonymous class in java?

Antwoord op sollicitatievraag

Anoniem

11 dec 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