What is the difference between throw and throws?
Answer Posted / ravikiran
throw will declare an exception
throws will throw the exception to the calling method
| Is This Answer Correct ? | 16 Yes | 8 No |
Post New Answer View All Answers
How to disable caching on back button of the browser?
What is class??
What is a boolean output?
Does string isempty check for null?
Which is the best approach for creating thread ?
What are actual parameters?
What is the use of singleton class?
What is difference between overloading and overriding in java?
What is the purpose of file class?
Is set sorted in java?
What is a constructor, constructor overloading in java?
What is logical variable?
What is a stringbuilder?
Explain about interrupt() method of thread class ?
What is the purpose of default constructor?