The types of exceptions that need not be included in a methods throws list are called Unchecked Exceptions. ArithmeticException ArrayIndexOutOfBoundsException ClassCastException IndexOutOfBoundsException IllegalStateException NullPointerException SecurityException The types of exceptions that must be included in a methods throws list if that method can generate one of these exceptions and does not handle it itself are called Checked Exceptions. ClassNotFoundException CloneNotSupportedException IllegalAccessException InstantiationException InterruptedException NoSuchFieldException NoSuchMethodException
Java
Topic: Exceptions
What are Checked Exceptions and Unchecked Exceptions?
Browse random answers:
What is an Exception?
What is a Java Exception?
What are the different ways to generate an Exception?
Where does Exception stand in the Java tree hierarchy?
Is it compulsory to use the finally block?
How are try, catch and finally block organized?
What is a throw in an Exception block?
What is the use of throws keyword?
What are Checked Exceptions and Unchecked Exceptions?
What are Chained Exceptions?
Exceptions are defined in which java package?
What is Runtime Exception or unchecked exception?
What is difference between ClassNotFoundException and NoClassDefFoundError?
How to create custom Exception?
Why did the designers decide to force a method to specify all uncaught checked exceptions that can be thrown within its scope?
Can you give an example of an unrecoverable problem when error is thrown?
Explain the difference between the two approaches of exception handling