abstract class vehicle{ abstract public void speed(); } class car extends vehicle{ public static void main (String args[]) { vehicle ob1; ob1=new car(); //1 }}
compiletime error at line 1
forces the class car to be declared as abstract
Runtime Exception
None of the above