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
Is vector synchronized in java?
Why Java doesn’t support multiple inheritance?
What is the full meaning of java?
What is the difference between static binding and dynamic binding?
Which number is denoted by leading 0x or 0x in java?
Can we use String with switch case?
If a method is declared as protected, where may the method be accessed in java programming?
What is string substring?
Can keyword be used as identifier?
State two differences between C and Java.
What are the steps in the jdbc connection?
Highest level event class of the event-delegation model?
Difference between final and effectively final ?
What is the difference between array and array list in java?
Why java is platform independent? Explain.