throw and throws
what is the difference between throw and throws
Re: throw and throws
keyword that allows the user to throw an exception or any class that implements the "throwable" interface.
keyword used in method declarations that specify which exceptions are not handled within the method but rather passed to the next higher level of the program.
I hope it clears the doubt in your mind.
|All times are GMT +5.5. The time now is 09:14.|