what is the difference between through and throws?
Answer Posted / sharad
I think it's not through but throw. So the question is what is the difference between throw and throws?
Ans. Throw is used to through an exception and throws is used to declare in the method beginning that this method can throw an unchecked exception and which it does not handle.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What are the types of the main implementing classes in the map interfaces? : java collections
What are maps interfaces in the java collections? : java collections
What are the classes in the java collection framework? : java collections
What are the interfaces in java collections? : java collections
What do you understand by synchronization? Why is it important?
What is the use of the list interface in the java collection? : java collections
Hi we have an urgent requirement for Java/J2ee technical lead position & also looking for "Java Guidewire claimcentre" experienced professional for Bangalore location if interested can reach srisanh@gmail.com
What are the differences between the java collection and the java list? : java collections
can u draw class/object diagram for ATM
Should we create system software ( e.g operating system ) in java ?
How is hashset maintained in memory by java ?
What is the use of hashcode in java ?
What are the queues in the java collection framework? : java collections
What is iterator in the java collections framework? : java collections
Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.