Programming MCQS - QUESTION DETAILS

What is the purpose of the 'try-catch' block in Java?
A. Define exceptions
B. Throw exceptions
C. Catch and handle exceptions
D. Propagate exceptions

'try-catch' is used to catch and handle exceptions in Java.

Similar Questions

Which function is used to compare two strings in C?






What does the 'printf' function do in C?






What is the output of printf("%d", ~5);?






What is the purpose of the 'continue' statement in a loop?






What is the purpose of the 'malloc' function in C?






Which operator is used to access the value pointed to by a pointer in C?






Which of the following is a bitwise AND operator in C?






What is the purpose of the 'union' keyword in C?






What is the role of the 'static' keyword in C?






How do you define a function in C?