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
How do you detect memory leaks?
Does garbage collection occur in permanent generation space in jvm?
Is void a return type?
What is the default size of load factor in hashing based collection?
How to convert string to char and vice versa?
How do you compare objects in java?
What are the legal operands of the instanceof operator?
What are disadvantages of java?
Which java collection does not allow null?
What is loop in java?
What is static class
What is the final keyword?
Is 0 true or false in java?
What is package protected in java?
Explain public static void main(string args[]) in java.