MCQs > IT & Programming > Java > Difference between a try-catch block and a try-catch-finally block?

Java MCQs

What is the difference between a try-catch block and a try-catch-finally block?

Answer

Correct Answer: try-catch contains code to execute if an error occurs or not, while try-catch-finally works the same way as try-catch block with the addition of a set of code that willexecute whether an error occurs or not.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More Java MCQ Questions

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it