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 actual difference between statement,prepared statement and callable statement and when we have to use it? pls post a answer with code and clear explanation. thanks
What is JVM ? use of JVM?
How many types of equations are there?
Can you explain inner class.
What is Hierarchy of exception?
What is left shift and right shift?
What is return null in java?
What is passing value java?
When do we use synchronized blocks and advantages of using synchronized blocks?
Write a program to print the pattern given below
what is a thread pool in java and why is it used?
Why string is immutable or final in java