what is difference between throw and throws in exception?
Answer Posted / bhavannarayana ch
To handover an Exception object to the JVM Programatically by using the "throw"
To delegate the responsibility of Exception handling to the caller by using "throws"
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
How will you print number in reverse (descending) order in BST.
How do you bind variables?
Which of the following classes will have more memory allocated?
How do you use compareto method?
what is abstract class in Java?
Explain the usage of this with constructors?
How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?
How transient variable is different from volatile variable?
What is the final access modifier in java?
What is backdrop?
Whats the difference between notify() and notifyall()?
What is void data type?
why we use merge option in hybernate pls give a ex snippet
What methodology can be utilized to link to a database?