what is the difference between through and throws?
Answers were Sorted based on User's Feedback
Answer / mahesh
there is no such keyword in java(through).it is used in our regular language ...throws means it throws exception..it should written the method header part only...
Is This Answer Correct ? | 13 Yes | 2 No |
Answer / 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 |
What is the enumerator of the java collection framework? : java collections
VSS Objectives
Should we create system software ( e.g operating system ) in java ?
where is JNDI being used in java platform?
What are the different types of collections views being provided by the map interface? : java collections
i need java 1+ experience resume on java developer kindly send me my mail id:srikanthreddy1.marla@gmail.com
what is difference between struts1.2 and struts2.0
How do you create UserTransaction Object? How do you rollback a transaction in a method?
What is difference between Application Server and Web Server?
how to deploy the web application ?
Explain JSP life cycle?
what is diff string and stringbuffer