Q:
What is the difference between throw and throws clause?
Answer
A throw is used to throw an exception manually, where as throws is used in the case of checked exceptions, to tell the compiler that we haven't handled the exception, so that the exception will be handled by the calling function.
View answer
Workspace
Report Error
Discuss