Pergunta de entrevista da empresa HCLTech

What is a try block in java?

Respostas da entrevista

Sigiloso

3 de ago. de 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.

Sigiloso

6 de jun. de 2021

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