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 is the collections api?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
Explain listiterator and methods in listiterator?
Which data type is class in java?
What language is an assembler written in?
Why multiple inheritance is not supported by java?
What is the Scope of Static Variable?
How to use Media tracker Class.
Is string is a keyword in java?
Write a function for palindrome and factorial and explain?
what is the purpose of the runtime class?
What is the difference between math floor and math round?
What does the append?
What is the default size of set in java?
What is the difference between state-based unit testing and interaction-based unit testing?