what is difference between throw and throws in exception?
Answer Posted / ravivarman
Throw keyword can be used by a program to throw exceptions
explicitly.the execution of the current block stops
immediately after the throw statement.
A method should declare that it can cause an exception and
expects its caller handle or re-throw the exception.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why singleton pattern is better than creating singleton class with static instance?
What does file separator do in java?
Define an applet in java?
What are Normalization Rules? Define Normalization?
Explain the difference between an object-oriented programming language and object-based programming language?
Can there be an abstract method without an abstract class?
What are different types of constants?
Explain runtime exceptions?
What are the 4 types of research methods?
What is canonical name in java?
What are features of java?
What is fundamental datatype?
What is a modifier?
How much is a java license?
What is hashset in java?