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 is thread? : Java thread
What is use of valueof () in java?
How to perform binary search in java?
When should you make a function static?
Lowest Common ancestor in a Binary Search Tree and Binary Tree.
Can anonymous class have constructor?
What is loop in java?
Is an empty arraylist null?
Can we use both this () and super () in a constructor?
What is a singleton class? Give a practical example of its usage.
How do you check if a string contains only numeric digits?
What is the requirement of thread in java?
What are nested classes in java?
Is java a prime method?
Implement two stacks using a single array.