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 an object and how do you allocate memory to it?
What is the difference between array and array list in java?
What is isa relationship?
Suppose there is an array list [10,5,20,19,15,24].Print them in ascending & descending order in collection framework concept ???
What are internal variables?
how many design pattern r there? and wht design pattern u use and why ?
What is constructor and its types?
what is the constructor and how many types of constructors are used in java?
What is the reason that multiple inheritance is not possible in java??
Give an example of call be reference significance.
How use .contains in java?
How we can make copy of a java object?