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 |
Memory management in JAVA
3 Answers Tech Mahindra, Wipro,
What is a java lambda expression?
What is null statement?
what is overloading in java?
13 Answers Ascent, DNS, Infosys, SDA, VelTech,
What is core java used for?
What is loop in java?
Difference between final and effectively final ?
Why collection doesn’t extend cloneable and serializable interfaces?
What does java se mean?
Can we convert list to set in java?
What will happen to the exception object after exception handling?
what is the full form of java