what is difference between throw and throws in exception?
Answer Posted / ramya
throw - used to handle user-defined exception
throws -jvm(java virtual machine) going to take all exception
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the methods available in a class?
What will be the output of round(3.7) and ceil(3.7)?
Can we override protected method in java?
What is a singleton class in Java?
What is the formula to calculate percentage?
describe method overloading
Is integer immutable in java?
What is the difference between length and length() method in java?
What purpose do the keywords final, finally, and finalize fulfill?
Which of the following classes will have more memory allocated?
What is the use of pattern in java?
What is a arraylist in java?
Print Vertical traversal of a Binary Tree.
Can we sort set in java?
State the main difference between c++ and java?