What's the difference between a try block and a try statement
A) There is no difference; the terms can be used interchangeably.
B) A try statement refers to the block of code following the keyword try, while the try block refers to the try keyword and the block of code following this keyword.
C) The try block refers to the keyword try followed by a block of code. The try block and its corresponding catch and/or finally clauses together form a try statement.
D) The try statement refers to the keyword try followed by a block of code. The try statement and its corresponding catch and/or finally clauses together form a try block.
Correct Answer:
Verified
Q8: Which of the following is not included
Q13: In C#,after an exception is handled,control resumes.This
Q14: The base class for all exception classes
Q15: When an exception occurs,the try block _.
A)
Q17: An uncaught exception _.
A)is a possible exception
Q19: C# throws an IntegerArithmeticException when division by
Q20: Which of the following statements is false
A)
Q21: There must be a catch clause for
Q22: Which of the following statements is false
A)
Q23: After the last catch block,the required finally
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents