This content has been marked as final. Show 1 reply
I have clear idea about try,catch,finally, but i do not have clear idea about throws
Can u anyone explain about throws with example program?
Yes - the Java Tutorial can explain it and has examples
And all of the Java Language constructs, including 'throws' are defined in the Java Language Specification
8.4.6. Method Throws
A throws clause is used to declare any checked exception classes (§11.1.1) that the statements in a method or constructor body can throw (§11.2.2).