what is difference between throw and throws in exception?
Answer Posted / suman
"throw" is used to handle user-defined exception.
JVM handles the exceptions which are specified by "throws"
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do generics work?
What happens if an exception is throws from an object's destructor?
How do you avoid global variables?
Which is the class in java?
What is the importance of hashcode() and equals() methods?
Does every java program need a main?
What is meant by javabeans?
What does += mean in java?
What are synchronized methods ?
Explain JMS in detail.
What is null in java?
How do you use substring in java?
What is the use of http-tunneling in rmi?
What is a final class in java?
What is keyword auto for?