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 difference between error and an exception?
What is a bufferedreader?
Describe what happens when an object is created in java ?
When do we use hashset over treeset?
What is difference between java and java ee?
Explain the difference between throw and throws in java?
What is high level language in computer?
Give us a program to check for parenthesis matching using stack.
What is serialization in java?
What do you mean by mnemonics?
Why you should not use singleton?
What is meant by collection in java?
Is arraylist ordered?
What is the console in java?
what happens when a thread cannot acquire a lock on an object? : Java thread