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
How large is a boolean?
Can a static class have a constructor?
What is the escape character in java?
how to create multithreaded program? : Java thread
What is unicode with example?
What is the use of set in java?
What are recursive functions? Give some examples?
Can a final variable be null?
What is static block?
What are the drawbacks of reflection?
What is public static?
What modifiers may be used with an inner class that is a member of an outer class in java programming?
What is == in java?
What is an infinite loop in java? Explain with an example.
How many bytes is 255 characters?