what is difference between throw and throws in exception?
Answer Posted / neema
"throw" is used to handle user-defined exception.
JVM handles the exceptions which are specified by "throws"
| Is This Answer Correct ? | 261 Yes | 50 No |
Post New Answer View All Answers
Can you have two constructors in java?
Can a java program have 2 main methods?
How does arrays sort work in java?
How can an object be unreferenced?
What is the difference between the paint() and repaint() methods?
How do you use spaces in java?
What does index mean in java?
What is singleton class in ruby?
What happens if main method is not static?
What is meant by data hiding in java?
What is the concatenation operator in java?
What are measurable parameters?
Why call by value prevents parameter value change?
Which list does not allow duplicates in java?
What does the three dot emoji mean?