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
What is the difference between class forname and new?
Implement two stacks using a single array.
What is the difference between reader/writer and inputstream/output stream?
How transient variable is different from volatile variable?
how does multithreading take place on a computer with a single cpu? : Java thread
What is the largest number a double can hold?
What is immutable data?
Explain wait(), notify() and notifyall() methods of object class ?
What is the difference between the prefix and postfix forms of the ++ operator?
What does the string method compareto () do?
Can we overload the main() method?
Why java is object oriented?
How many tetrahedral voids are there in bcc?
What is difference between path and classpath in java?
How to disable caching on back button of the browser?