what is difference between throw and throws in exception?
Answer Posted / visweswara rao
throw:- System generated exceptions are automatically
thrown by the Java run-time system.To manualy throw the
exception,we use the keyword throw
throws:- Any exception that is thrown out of a method must
be specified as such by a throws clause
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What do you mean by singleton class in java?
What is anagram word?
What is a jit compiler?
What is implicit object in java?
What does it mean that a class or member is final?
Explain all java features with real time examples
What is module in project?
What are implicit objects in java?
What happens if we override only equals?
Is set thread safe java?
Explain about the interpreter in java?
What is jit compiler in java?
What is oop in java?
Why doesn't the java library use a randomized version of quicksort?
what is encapsulation in java? Explain