Can multiple catch statements be used in exceptions ?
Answer Posted / syamkumarm
yes we can use multiple catch statements in exceptions
for example we r writing the program for databas connection
with some mathametical operations with some network concepts
then we may get arithmatic exception, sql exception, and
netwok exception socket, rmi etc there we need to catch all
thoes using different catch statement
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Can a string be null?
What is are packages?
How do you identify if jvm is 32-bit or 64-bit from java program?
Why is singleton instance static?
What is the difference between synchronized and synchronized block?
What is a wrapper method?
What is the purpose of return statement?
What is a class object?
Which package is imported by default?
What are runtime exceptions?
What type of variable is error flag?
What is the difference between an inner class and a sub-class?
Can you call a method in a method?
What are methods?
Explain about field hiding in java?