Organizational Research By

Surprising Reserch Topic

Question:Explain the significance of try-catch blocks?



asked Sep 13, 2013 in Java Interview Questions by rajesh
edited Sep 12, 2013
0 votes
24 views



Related Hot Questions

2 Answers

0 votes
Whenever the exception occurs in Java, we need a way to tell the JVM what code to execute. To do this, we use the try and catch keywords. The try is used to define a block of code in which exceptions may occur. One or more catch clauses match a specific exception to a block of code that handles it.
answered Sep 13, 2013 by rajesh
edited Sep 12, 2013
0 votes
Whenever the exception occurs in Java, we need a way to tell the JVM what code to execute. To do this, we use the try and catch keywords. The try is used to define a block of code in which exceptions may occur. One or more catch clauses match a specific exception to a block of code that handles it.
answered Sep 13, 2013 by rajesh
edited Sep 12, 2013

...