(Choose 1 answer)
Exit 16
What will happen if you attempt to compile and run the following code?
class Base
class Sub extends Base
class Sub2 extends Base {}public class CEx{
public static void main(String argv[]){Base b=new Base();
}
Sub s=(Sub) b;
}
A. Compile and run without error
B. Compile time Exception
C. Runtime Exception