Java OOPs perguntas e respostas de entrevista
Question: Explain the 'try', 'catch', and 'finally' blocks in Java.Answer: The 'try' block contains the code that might throw an exception. The 'catch' block handles the exception, and the 'finally' block contains code that is always executed, regardless of whether an exception is thrown or not.Example:
|
Salvar para revisao
Adicione este item aos favoritos, marque-o como dificil ou coloque-o em um conjunto de revisao.
Faca login para salvar favoritos, perguntas dificeis e conjuntos de revisao.
Isto e util? Sim Nao
Mais uteis segundo os usuarios: