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 module in oop?
What does substring mean?
What is the length of a string?
What’s a deadlock?
Is 0 a prime number?
What is the difference between a constructor and a method?
What is difference between length and length() method in java ?
What does this mean java?
What are the pillars of java?
Where will it be used?
how we can use debug in myeclipse 6.0 in order solve the problems that exist in our program when there are 900 to 1000 pages in a web application
What is the difference between throw and throws keywords?
What does void * mean?
What is class and object in java?
Can you sort a string in java?