Pregunta de entrevista de HCLTech

What is a try block in java?

Respuestas de entrevistas

Anónimo

6 jun 2021

Try block is a those block that apply in our programe where can generate exception condition

Anónimo

3 ago 2021

In order to handle the exception in JAVA, we have multiple approaches. One among them is by using try...catch... block Try block is the place where we have the code which is possible to raise an exception and catch block is useful for catching the exception which is raised in try block.