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
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
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