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
What is hashtable and explain features of hashtable?
What are java packages? What's the significance of packages?
Why we override equals() method?
Why are lists ordered in java?
What is a generic type?
if u open login & logout ,how can udisplay the timelogin & logout members ?
Is there any tag in htm to upload and download files?
What are the benefits of operations?
How many classes can any class inherit java?
Why do you canvas?
What is toarray method in java?
What does flagged out mean?
Can we increase array size dynamically in java?
Is arraylist a class in java?
What is compiler and what its output.