Answer Posted / chaitanya
throws clause is used when the programmer does not want to
handle the exception and throw it out of a method.throw
class is used when the programmer wants to throw an
exception explicitly and wants to handle it using catch
block.hence ,throws and throw are contradictory.
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Can we sort set in java?
What does the three dot emoji mean?
How strings are created in java?
Is nullpointerexception checked or unchecked?
What is assembly condition codes?
Is array passed by reference in java?
What is the static field modifier?
What is the purpose of the runtime class in java programming?
What are static variables and functions?
What is an array in java?
How to sort a collection of custom Objects in Java?
Difference between abstract and concrete class ?
Can java arraylist hold different types?
What is the diffrence between inner class and nested class?
What is string subsequence method?