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
How do you stop a thread in java?
Why is java logo a cup of coffee?
What is exception propagation?
Which package is imported by default?
Difference between current previous versions of Java?
what is the use of bean managed and container managed with example?
How does varargs work in java?
Can static method access instance variables ?
Can you run java program without main method?
Why char array is favored over string for the storage of passwords?
What does pointer mean?
Describe what a thread-local variable is in java?
What is update method called?
Explain the private protected method modifier?
What is the main purpose of serialization in java?