which two actions?

The throw keyword is used to perform which two actions? (Choose two.)

The throw keyword is used to perform which two actions? (Choose two.)

A.
stop processing of the code

B.
move error handling to a separate thread

C.
raise exceptions

D.
re-throw exceptions as a different type



Leave a Reply 1

Your email address will not be published. Required fields are marked *


Serge

Serge

C – The throw statement is used to signal the occurrence of an anomalous situation (exception) during the program execution.

D – A throw statement can be used in a catch block to re-throw the exception that the catch block caught