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 is arrays sort in java?
What is loop in java?
Is Constructor possible in abstract class in java ?
What is boolean false?
What is the difference between super class & sub class?
Can static methods be inherited?
What is binary tree in java?
Write a program to search a number in the given list of numbers.
Can a private method be declared as static?
What is OOP's Terms with explanation?
Which software is used for java programming?
What is variable and rules of variable?
Can we declare a static variable inside a method?
What is pangram in java?
Does google use java?