What is the difference between throw and throws?
What is the similarity between try and throw?
Answers were Sorted based on User's Feedback
Answer / giri
throw is used to throw an exception manually, where as
throws is used in the case of checked exceptions
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / 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 |
What is the difference between static and non-static variables in java programming?
what is use of business objects?
What are the four corner stones of oop?
What happens if constructor is private?
What happens if we don’t override run method ?
Hi am an mca graduate . i have done bsc maths in my degree . every company asks me why you make shift from maths group to computere field . What i need to answer?
Explain thread in java?
What is a platform?
Implementations of set interface?
What is difference between identifier and variable?
What modifiers are used for interface declaration?
why constructor dont have returns type?