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 mena by object block any what is the use of that
What is compareto () in java?
Explain break statement and continue statement?
Explain features of interfaces in java?
What is private public protected in java?
What is a memory leak in java?
how can we synchronize Hash map?
Why is method overloading not possible by changing the return type in java?
How to check if linked list contains loop in java?
What is the difference between set and list?
What are the 7 types of characters?
Which is not Object in Java?