Answer Posted / lakshay gupta
The statements within the try block are executed, and if any
of them throws an exception, execution of the block is
discontinued and the exception is handled by the catch
block. There may be multiple catch blocks, in which case the
first block with an exception variable whose type matches
the type of the thrown exception is executed.
If no catch block matches the type of the thrown exception,
the execution of the outer block (or method) containing the
try ... catch statement is discontinued, and the exception
is passed up and outside the containing block (or method).
The exception is propagated upwards through the call stack
until a matching catch block is found within one of the
currently active methods. If the exception propagates all
the way up to the top-most main method without a matching
catch block being found, a textual description of the
exception is written to the standard output stream.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is == and === in javascript?
Can array grow dynamically in java?
What is a string what operation can be performed out with the help of a string?
Explain the term virtual machine?
What are the main uses of java?
Is int primitive data type?
How many types of array are there?
What is an argument in java?
Is java a super set of javascript?
How much is a java license?
What does serializing data mean?
Why do we need data serialization?
What is tcp ip in java?
What is the difference between preemptive scheduling and time slicing in java programming?
Explain the use of volatile field modifier?