Nothing happens. There is no such concept as "object created
to a class". The question makes no sense, because
runtime type of any object cannot be any abstract class. This is the purpose of this
abstract class feature to prevent instantiation of such class.
In turn, the purpose of abstract class is to server as a base class for other classes, this way providing a common interface for the polymorphic set of objects. The objects in such set can be of different
runtime types, and the code using then can be agnostic about their differences. This way different implementations of some methods can be hidden behind the facade of this base class. Such class can also be used as a base class of just one non-abstract time, for the purpose of hiding implementation detail from the user of the base class as a
compile-time type.
Please see:
https://docs.oracle.com/javase/tutorial/java/IandI/abstract.html[
^].
—SA