Answer Posted / aparna
Checked exceptions should be taken care by the user using
try and catch blocks otherwise runtime error occurs
for eg:
class.forName() method throws ClassNotFoundException which
should be caught between try and catch blocks
Unchecked exceptions are taken care by the jvm itself, user
need not worry about these type of exceptions
for eg:
Integer.parseInt() method throws NullPointerException which
need not be placed between try and catch blocks
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What are the changes in java.io in java 8 ?
Why is the type for real numbers called double?
Write a function to print Fibonacci series and Tribonacci series?
How do you get length in java?
What is scope & storage allocation of static, local and register variables? Explain with an example.
Explain the available thread states in a high-level?
How many bits is a double?
Differentiate between a class and an object.
Can we declare register variable as global?
What does jenkins do?
What are the two types of java?
What is size of int in java?
What is variable argument in java?
What are the types of casting?
How does class forname work in java?