Submitted Questions

  • Exception handling catch block?

    Please observe the following code....public class MyClass{ public static void main(String[] args) { try{ //code here }catch(Exception e) { System.out.println(e); } }}if the try block throws an ArithmeticException,NullPointerException,etc....we can handle the exception...Because those are the sub classes of Exception class...The Question...

    Raghu

    • Aug 19th, 2011

    An exception type must be subtype of Throwable class.............