November 6th, 2013, 01:01 AM
what is the difference between throw and throws
i have read about this on internet but the concept is not clear to me. thanks.
November 6th, 2013, 04:28 AM
A function can throw an exception.
Originally Posted by mk12345
If you call a function that do this, you can either catch the exception or add to the function that it should throws all exception
basically, throw is to raise an exception where throws is use to forward the exception.
November 7th, 2013, 12:13 AM
can you please post the code to describe it.
November 7th, 2013, 04:49 AM
November 8th, 2013, 01:48 AM