What is the difference between throw and throws?
What is the similarity between try and throw?
Answer Posted / 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 |
Post New Answer View All Answers
What are the properties of thread?
What is a superclass?
What is main method?
What is Recursion Function?
Can a static method be final?
What is the static keyword?
What is a stringbuilder?
What is a java predicate?
What is java virtual machine and how it is considered in context of java’s platform independent feature?
What Is Query Throttling in java?
Explain abstract class in java?
How do I get a substring?
What is break and continue statement?
What are constructors in java?
What is difference between static and final?