what is difference between throw and throws in exception?
Answer Posted / chirag
throw will throws the exception,
and throws declares that the function will throw an exception
you should catch all every functions throwing and exception
u declare it or catch it
| Is This Answer Correct ? | 29 Yes | 25 No |
Post New Answer View All Answers
If try block is successfully executed, Then Is Finally block executed?
how we can make a write-only class in java?
How do you join strings in java?
What is a two-pass assembler?
What is java command?
What is an interface in java? Explain
What are the three parts of a lambda expression?
What is Java Annotations?
How many boolean functions are there?
Which class cannot be a subclass in java?
what do you mean by marker interface in java?
What is polymorphism in java? What are the kinds of polymorphism?
What is a container in a gui?
What are wrapped classes in java programming?
What is the purpose of a transient variable?