Programming MCQS - QUESTION DETAILS

What is the purpose of the 'throws' keyword in Java?
A. Define exceptions
B. Throw exceptions
C. Catch exceptions
D. Propagate exceptions

'throws' is used to propagate exceptions in Java.

Similar Questions

What is the purpose of the 'instanceof' operator in Java?






What is the output of printf("%f", 10 / 3);?






Which Java keyword is used to implement multiple interfaces in a class?






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






What is the purpose of the 'do-while' loop in C?






How do you create a thread in Java?






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






How is a preprocessor directive indicated in C?






What is the purpose of the 'try-catch' block in Java?






Which function is used to compare two strings in C?