1.

Differentiate between throw and throws with respect to exception handling.

Answer»

Throw: This clause is used to explicitly raise a exception within the program, the statement would throw new exception. 

Throws: This clause is used to indicate the exception that are not handled by the method.



Discussion

No Comment Found

Related InterviewSolutions