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


Please Help Members By Posting Answers For Below Questions

What is Java Annotations?

633


What is the purpose of return statement?

712


Explain restrictions on using enum?

728


Is array serializable java?

606


Where local and global variables are stored?

645






What are different data types?

654


List the different types of classloaders in java.

609


Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.

2463


What is meant by nested loop?

646


What is an image buffer?

622


Does chrome use java?

613


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

954


How to reverse a string in java?

616


What is string buffer?

605


what is the purpose of the runtime class?

658