What is the difference between a try block and try statement


Problem:

Question- What is 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 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 or finally clauses together form a try block.

Give reasoning with your answer.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: What is the difference between a try block and try statement
Reference No:- TGS0893833

Expected delivery within 24 Hours