What is the main purpose of a try-catch block?
To obtain and use resources that are being caught.
To signal the occurrence of an exception during the program execution.
To catch and handle an exception generated by an executable code.
To ensure that the necessary cleanup of external resources is done immediately.
Submit