why there are multiple catches for a try block.don't tell me
that there can be multiple exception of a code segment
that's why.tell me the real fact behind this.

Answer Posted / raj

Handle e\any es\exception at the layer that can handle it
in an efficient manner, else propagate it upwards!

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

State one difference between a template class and class template.

828


Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.

734


What is difference between == and === in js?

775


What is predicate in java?

791


What is static keyword?

776


What is array in java?

733


What is a databasemetadata?

714


What is string in java is it a data type?

731


What do you mean by chromounits in java8?

706


Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?

759


What is meant by method?

772


What are exception handling keywords in java?

802


Can I declare a class as private?

807


give an example for encapsulation?

764


What are different types of states exist for a thread?

769