what is difference between throw and throws in exception?
Answer Posted / srinath
throws keyword is used 2 delegate the responsibility of
exception handling 2 caller method where as throw keyword
used 2 hand over the creted customised excetion object 2
jvm 2 handle the excepion.
| Is This Answer Correct ? | 33 Yes | 7 No |
Post New Answer View All Answers
What is instanceof keyword?
Can a class have multiple superclasses?
Can you explain the usages of class.forname()?
Do you know how to reverse string in java?
What are extraneous variables examples?
Difference between predicate, supplier and consumer ?
What is the difference between equals() and?
What is the difference between assignment and initialization?
What is string and its types?
What is the reason behind using constructors and destructors?
Discuss 2D arrays.
Is singleton set an interval?
What is difference between printf and scanf?
What is externalizable interface?
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread