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 |
Explain reverse a linked list recursive java solution?
What is the use of accept () method in java?
What are the supported platforms by java programming language?
How does a try statement determine which catch clause should be used to handle an exception?
What is the use of volatile in java?
there are some duplicate values in ArrayList, how U'll get that array with out duplicate?
What is the maximum size of byte array in java?
What is an abstract method in java programming?
What do you mean by composition in java?
Can we nested try statements in java?
explain the concept of inheritance with an example?
Can you explain the Java thread lifecycle?