Results 1 to 1 of 1
Thread: UnChecked Exception
-
UnChecked Exception
Exceptions which extend RuntimeException class are known as UnChecked Exceptions. We are not supposed to write the statements (for which we expect UnChecked exception) under try...catch block. ArithmeticException and NullPointerException are some examples of UnChecked exception.
UnChecked/Runtime exception reported:Java Code:String [] str = new String[5]; str[5] = "Java Tip";
Java Code:Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5
Similar Threads
-
Need help on Exception
By Deon in forum New To JavaReplies: 7Last Post: 02-11-2010, 05:46 PM -
exception
By Oktam in forum New To JavaReplies: 2Last Post: 03-23-2008, 07:01 PM -
Trouble with factory method - unhandled exception type Exception
By desmond5 in forum New To JavaReplies: 1Last Post: 03-08-2008, 06:41 PM -
Uses unchecked or unsafe operations message
By Robbinz in forum New To JavaReplies: 2Last Post: 12-06-2007, 10:56 PM -
Exception
By Camden in forum New To JavaReplies: 2Last Post: 11-26-2007, 11:50 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks