Which of the following elements is not included in try block ?(a) the keyword try
(b) the keyword catch(c) the curly braces
(d) statements that might cause Exceptions
Answers
Answered by
3
Hello here is your answer by Sujeet yaduvanshi
Q:-Which of the following elements is not included in try block ?(a) the keyword try
(b) the keyword catch(c) the curly braces
(d) statements that might cause Exceptions
ANS:-statements that might cause Exceptions
Q:-Which of the following elements is not included in try block ?(a) the keyword try
(b) the keyword catch(c) the curly braces
(d) statements that might cause Exceptions
ANS:-statements that might cause Exceptions
Answered by
5
The keyword catch is not included in try block.
Answer: Option (b)
Explanation:
Exceptions are the run time abnormalities or anomalies that got encountered during program execution. It can be taken into consideration while writing the code. To handle this type of situation, exception handling mechanism has to be used.
Some specialised keywords should be used for this purpose. They are try, catch, throw. Try signifies a ‘block of code’ that throws an exception. Throw is used for throwing an exception. Catch part will be executed when an exception is thrown.
Similar questions