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
Can a method be overloaded based on different return type but same argument type?
Which eclipse is best for java?
What do you understand by synchronization?
Can a main method be overloaded?
What are new features introduced with java 8 ?
How many bytes is a string in java?
Write a java program for binary search?
Can a method inside a interface be declared as final?
What is meant by 'Class access modifiers'?
In a container there are 5 components. I want to display all the component names, how will you do that?
Is arraylist dynamic in java?
What is the use of coding?
What is the collections api in java programming?
What are inner classes or non static nested classes in java?
How do you start a new line in java?