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
Explain reverse a linked list recursive java solution?
What are inner classes or non static nested classes in java?
What do you mean by order of precedence and associativity?
Write a function to print Fibonacci series and Tribonacci series?
Is sizeof a keyword in java programming?
What is size_t?
How to display names of all components in a Container?
How do you allocate memory to object?
Write code of any action class?
Why static functions are used?
Can we use static class instead of singleton?
What is the exception hierarchy in java?
Can we extend singleton class in java?
What is the difference between throw and throws keywords?
How do you check if a string contains only numeric digits?