what difference between throw and throws in exception
handling.
Answer Posted / archana
throws is to handle exception by the system itself
whereas throw used by the user to handled the exception
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What are the methods to rectify ambiguities in the interfaces in JAVA?
What is the difference between multitasking and multithreading in Java
Explain the private field modifier?
Why you should not use singleton?
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?
What is unmodifiable collection in java?
What are the steps involved to create a bean?
When is the finalize() called?
How to create a fecelet view?
What is the difference between the paint() and repaint() methods?
placement papaers of spring computing technology
What is role of void keyword in declaring functions?
How do you represent a space in regex java?
What is hashing in java?
How would you use Bubble Sort to sort the number of elements?