what difference between throw and throws in exception
handling.
Answer Posted / narayana reddy
throws indicates what type of exception is thrown by
a particular function, where as throw is used to through
user defined exceptions
Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
What is difference between string and new string?
Describe string intern() methodology
What is member in java?
Lowest Common ancestor in a Binary Search Tree and Binary Tree.
Can we rethrow the same exception from catch handler?
When should I use singleton pattern?
What is charat ()?
What is difference between core java and java ee?
What is hotjava?
What is method overloading and method overriding?
What are the restriction imposed on a static method or a static block of code?
What does the append?
What is java and their uses?
Explain the difference between an object-oriented programming language and object-based programming language?
How does compareto method work?