What is the difference between throw and throws?
Answer Posted / surender kannuri
throws clause is used to whenever programmer doesn't want to
handle exception.throws it out of method.
throw is used whenever programmer wants to handle exception
explicitly by using catch blocks.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Does importing a package imports its sub-packages as well in java?
What is an iterator interface in java programming?
Can we sort list in java?
How we can make copy of a java object?
Is a method a function?
Explain all java features with real time examples
What are green threads in java?
What is string data type?
What is hotjava?
What is the transient keyword?
what are the methods in object?
What is a substitution variable?
What is lastindexof in java?
Print Vertical traversal of a Binary Tree.
What is a arraylist in java?