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 will happen when using pass by reference in java?
How do you override a private method in java?
Mention a package that is used for linked list class in java.
What is the role of the java.rmi.naming class?
What is treeset and treemap in java?
What about abstract classes in java?
Can we increase size of array?
How do you reverse a list?
Why java is considered dynamic?
Write a program to show whether a graph is a tree or not using adjacency matrix.
Can we sort hashmap in java?
Which is better 64 bit or 32 bit?
Difference between vector and arraylist.
What are the parts of methodology?
Is boolean a data type in java?