what is the output here ?

class Runme

{

public static void main(String a[])

{

Object error= new Error();

Object runtimeexception= new RunTimeException();

System.out.println( (error.instanceOf Exception+",");

System.out.println( (runtimeexception instanceOf Exception));

}

}

[308 byte] By [planswermea] at [2007-9-28 18:17:25]
# 1
It should be something like "false, true".A RuntimeException is "a special kind" of Exception, as it inherits from it. It is therefore considered as being an Exception.An Error is just a Throwable.Stephane
spenhoeta at 2007-7-12 16:07:03 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...