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 are the important methods of java exception class?
How can the checkbox class be used to create a radio button?
What is rmi and steps involved in developing an rmi object?
What is the purpose of default constructor?
Is static variable stored in heap?
Why is it important to initialize a variable?
What is final variable?
What is object cloning in Java?
What is string buffer?
What is treeset in java collection?
What is the purpose of using the java bean?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
What are the differences between the constructors and methods?
What does singleton mean in java?
What is arrays fill in java?