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 to run ecllipse with jettyserver for windows environment using batch file
What is the function of log?
What is the main difference between java platform and other platforms?
Is void a type?
Can constructor be protected in java?
Explain the advantages of packages in java?
What is t in parametric equations?
How to restrict a member of a class from inheriting by its sub classes?
What does bitwise or mean?
What is difference between Heap and Stack Memory?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
How are the elements of a gridbaglayout organized in java programming?
How does varargs work in java?
What exceptions occur during serialization?
Can we initialize the final blank variable?