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
Why set do not allow duplicates in java?
What is volatile data type?
How can you share data between two thread in Java?
Can we create object of static class?
What is the length of a string?
Can a class declared as private be accessed outside it’s package?
Is arraylist ordered?
What is meant by memory leak?
What is the basic difference between string and stringbuffer object?
Write a program to print fibonacci series
How do you invoke a method?
Explain about exception propagation?
What do you mean by stack?
What is empty list in java?
Does collectionutils isempty check for null?