How does a try statement determine which catch clause
should be used to handle an exception?
Answer Posted / guest
when an exception is thrown with in the body of the try
statement then the catch clauses of the try statement are
examined in the order in which they appear.The first catch
clause that is capable of handling the exception is caught
and the remaining are ignored.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Explain java heap space and garbage collection?
If we don’t want some of the fields not to serialize how to do that?
Is alive and join method in java?
Why is a string immutable?
I want to re-reach and use an object once it has been garbage collected. How it's possible?
How does a for loop work java?
What are latest features introduced with java 8?
How does hashset works in java?
What is default locale java?
Why does my function print none?
What is the difference between a method and a procedure?
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
What is the difference amongst jvm spec, jvm implementation, jvm runtime ?
How do you add an element to a hashset in java?
How to retrieve data from database in java using arraylist?