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 the static keyword?
Which package is imported by default?
Can a private method of a superclass be declared within a subclass?
What is the difference between error and an exception?
What is the disadvantage of java?
Is singleton class thread safe?
What does \ mean in regex?
What is foreach loop in java?
Can we restart a dead thread in java?
What is sizeof () operator?
What is the benefit of abstract class?
What are the features of junit?
What is meant by oops concept in java?
Why is the type for real numbers called double?
How do you ensure that n threads can access n resources without deadlock?