A a = new B( );Ans: A a = new B( ); is legal because any object of B is also an object of A by inheritance.B b = new A( );
And: When an exception is thrown, the program crashes. When the exception is caught, the code in the catch block executes.
Ans: IOException and its derived classes EOFException and FileNotFoundException.