HCL
Company
Category
What is the difference between die
and
exit statement.
Read Solution (Total 1)
-
- 1.die is used to throw an exception (catchable using eval).
exit is used to exit the process.
2.die will set the error code based on $! or $? if the exception is uncaught.
exit will set the error code based on its argument.
3.die outputs a message
exit does not. - 9 years agoHelpfull: Yes(2) No(1)
HCL Other Question