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
Why we go for collections in java?
who can i handle multiple client in RMI
What is slash r?
What is the gregoriancalendar class in java programming?
What are advantages of using Java?s layout managers than windowing systems?
What is the abstract class?
Which variables are stored in heap?
Does sprintf allocate memory?
What is member in java?
Can an interface extend a class?
Explain the difference between hashmap and hashtable in java?
What is locale?
Is java still necessary?
How would you dynamically allocate memory to an array?
How do you convert string to int in java?