What is the difference between throw and throws?
What is the similarity between try and throw?
Answers were Sorted based on User's Feedback
Answer / giri
throw is used to throw an exception manually, where as
throws is used in the case of checked exceptions
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / amar
throw is a statement level.throws is a method level.
In manual exception handling,we can also use the throws to
handle the excepions by the jvm,insted of handling there.
| Is This Answer Correct ? | 2 Yes | 0 No |
what is type of statement in jdbc connection?
Why is java so important?
What are static initalizers in java ?
placement papaers of spring computing technology
0 Answers Spring Computing Technologies,
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
what is deadlock? : Java thread
What is clipping and repainting and what is the relation between them?
How we can run a jar file through command prompt in java?
How to prevent a field from serialization ?
What modifiers can be used with a local inner class?
Why javac is not recognized?
What are implicit objects in java?