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
Explain creating threads by implementing runnable class?
What is definition and declaration?
Explain what pure virtual function is?
What is a memory leak in java?
What is array size in java?
What are different exception types exceptions available in java ?
Explain method local inner classes ?
What is function and method in java?
What is the difference between I ++ and ++ I in java?
What is the difference between numeric and integer?
whatis Home interface and Remoteinterface? with example?
What are the different types of inheritance in java?
What interface is extended by awt event listeners?
Define how objects are stored in java?
What is byte code and why is it important to java’s use for internet programming?