Most certainly, this would work: the class that you extend into an anonymous class does not need to be abstract - it could be any non-final
class, or even an interface (in which case you would need to implement all its methods).
Moreover, when the class is non-abstract, you could subclass without overriding any of its methods. This feature was used in the so-called type-safe enum pattern, which has been common prior to introduction of enum
classes into Java.