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
Why multiple inheritance is not supported by java?
What is java instanceof operator?
What is ascii code?
What are the java ide’s?
What are the four integer types supported by java?
What is functional interface in java?
Where local and global variables are stored?
What is string manipulation?
What is the different types of functions?
Why is java architectural neutral?
What are the 4 versions of java?
What is a null point?
How to create com object in Java?
What is dynamic binding(late binding)?
State two differences between C and Java.