Use of throws exception

Showing Answers 1 - 2 of 2 Answers

san

  • Nov 8th, 2005
 

IF EXCEPTION WILL OCCUR THEN WE CAN THROW THAT TYPE OF EXCEPTION  IN TRY BLOCK AND CATCH IT IN CATCH BLOCK

  Was this answer useful?  Yes

If a method is not Handling a checked exception and wants the exception to be propagated to the caller of the method then that exception is declared in the Throws clause of its method prototype.

Regards,

Chandana.

                                                                                                                                                                          

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions