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 is Java Annotations?
What is the purpose of return statement?
Explain restrictions on using enum?
Is array serializable java?
Where local and global variables are stored?
What are different data types?
List the different types of classloaders in java.
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
What is meant by nested loop?
What is an image buffer?
Does chrome use java?
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
How to reverse a string in java?
What is string buffer?
what is the purpose of the runtime class?