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 a programming object?
Can we have try block without catch block?
What is the default value of float and double datatype in java?
What is java jit compilers?
How will you load a specific locale?
What are the java ide's? Explain
garbate collector(GC)?
What is the function of java?
Tell me the latest versions in java related areas?
What are dot operator queries?
Explain about the security aspect of java?
How to display names of all components in a Container?