Pergunta de entrevista da empresa Coforge

What if we use try keyword without catch keyword will it generate error or not ?

Resposta da entrevista

Sigiloso

28 de jun. de 2023

Try keyword runs the code without generating error if any runtime error found it will generate exception of that can catch through catch keyword and if we do not write catch block then it will just run code next to the try block