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 will happen when using pass by reference in java?

707


How do you override a private method in java?

681


Mention a package that is used for linked list class in java.

731


What is the role of the java.rmi.naming class?

711


What is treeset and treemap in java?

774


What about abstract classes in java?

816


Can we increase size of array?

759


How do you reverse a list?

756


Why java is considered dynamic?

929


Write a program to show whether a graph is a tree or not using adjacency matrix.

826


Can we sort hashmap in java?

722


Which is better 64 bit or 32 bit?

688


Difference between vector and arraylist.

768


What are the parts of methodology?

734


Is boolean a data type in java?

718