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
Define reflection.
How does compareto work in java?
Explain methods specific to list interface?
What are different type of exceptions in java?
Explain the difference between runnable and callable interface in java?
Why is logger singleton?
What are variable arguments or varargs?
What is parameters example?
What are triggers in DB? Explain their types. How do they work?
Difference between static binding and dynamic binding?
What is the purpose of a default constructor?
what is the use of bean managed and container managed with example?
What is the difference between math floor and math round?
How do I remove a character from a string in java?
What does you mean in math?