class A {
public static void main (
String[] args) {
Object error = new Error();
Object runtimeException = new RuntimeException();
System.out.print((error instanceof Exception) + ",");
System.out.print(runtimeException instanceof Exception);
}}
Hi
Can you Explain me about Statement....
Object error = new Error();
Here Error class is a Direct Subclass of Throwable.....So how can Object be the Superclass of Error...
Thanks in Advance....
Deepak