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

How do you convert bytes to character in java?

539


Is passing by reference faster?

526


What are the main differences between the java platform and other platforms?

535


For class CFoo { }; what default methods will the compiler generate for you>?

622


What is the r character?

590






What is final method?

586


hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea

1465


Why do we need data structure in java?

579


What is currentthread()?

575


What is space character in java?

580


Explain when we should make an instance variable private.

621


What is difference between java and java ee?

562


How many threads can I run java?

550


Why do we need singleton class?

553


Can we declare an interface as final?

578