Is it possible to create an anonymous class, if the class has no default constructor?
Is it possible to create an anonymous class, if the class has no default constructor?
The answer is Yes, because in the anonymous class is not used a constructor, so the class has no name. Right?
1 answer
In all classes there is always a designer. If you do not specify it explicitly, the compiler will do it for you. Including for anonymous classes.
Find more questions by tags Java