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 ‘is-a ‘ relationship in java?
Can we have more than one package statement in source file ?
What does n mean?
What is a singleton puppy?
How big is a gigabyte?
What is return code?
What is time complexity java?
What is Java Classloader?
1 Answers Phantom Technologies,
What error occurs if a try-catch-finally statement sequence does not have a catch clause?
who can we create the object of a class? in how many ways we can create it (max 5)
Can we create constructor in abstract class ?
Is it possible to compare various strings with the help of == operator? What are the risks involved?