What is the difference between throw and throws?
What is the similarity between try and throw?
Answer Posted / amar
throw is a statement level.throws is a method level.
In manual exception handling,we can also use the throws to
handle the excepions by the jvm,insted of handling there.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is parsing in grammar?
What happens if I remove static from main method?
extending thread class or implementing runnable interface. Which is better? : Java thread
Is empty string in java?
What is substring in java?
what is ststic with example
What is basic syntax?
What is the format specifier?
What is the difference between a static and a non-static inner class in java programming?
What is data and its types?
Can a static method be final?
Is java a security risk?
How do you generate random numbers in java?
Is an empty arraylist null?
What are the access modifiers available in java?