What is the difference between throw and throws?
Answer Posted / ranganathkini
The 'throw' statement initiates an exception to be thrown
where as the 'throws' clause declares that the method is
expected to throw 1 or more checked execptions.
| Is This Answer Correct ? | 43 Yes | 5 No |
Post New Answer View All Answers
What is io stream in java?
can used Protected Class outside Function.?
When do we need to use internal iteration? When do we need to use external iteration?
What is "this" keyword in java? Explain
how to write a server program and sending the mails to the server using smtp protocol please help me
What is collection class in java? List down its methods and interfaces.
Can you override a final method?
How do you convert boolean to boolean?
What does null mean in java?
What are runtime exceptions?
Can you make a constructor final?
Difference between object instantiation and construction ?
What is the difference between JDBC 1.0 and JDBC 2.0?
What is the size of an array?
Why to use nested classes in java? (Or) what is the purpose of nested class in java?