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
What if constructor is protected in java?
Differece between class and generic class?
How do you initialize an arraylist in java?
What does the three dot emoji mean?
What is a stringbuffer?
What is a singleton puppy?
When should I use stringbuffer?
What class allows you to read objects directly from a stream?
What does it mean that a method or field is “static”?
How can a gui component handle its own events?
Write a program in java to establish a connection between client and server?
What is stringwriter?
What is object of class in java?
What happens if we override only equals?
What methods are used to get and set the text label displayed by a button object?