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
What type of variable is gender?
What does system.gc() and runtime.gc() methods do?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
What is arrays sort in java?
What is difference between c++ and java ?
Is array a class in java?
What are the advantages of compiled language?
What is nan in java?
What is Java Reflection API? Why it’s so important to have?
What is meant by tab pans?
Can we make constructors static?
what state does a thread enter when it terminates its processing? : Java thread
Is java a software?
What is difference between array and arraylist in java?
Can a set contain duplicates?