Java OOPs preguntas y respuestas 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:
|
Guardar para repaso
Guarda este elemento en marcadores, marcalo como dificil o agregalo a un conjunto de repaso.
Inicia sesion para guardar marcadores, preguntas dificiles y conjuntos de repaso.
Es util? Si No
Lo mas util segun los usuarios: