what is the difference between through and throws?

Answers were Sorted based on User's Feedback



what is the difference between through and throws?..

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

what is the difference between through and throws?..

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

Post New Answer

More Java J2EE AllOther Interview Questions

What is the enumerator of the java collection framework? : java collections

0 Answers  


VSS Objectives

1 Answers  


Should we create system software ( e.g operating system ) in java ?

0 Answers  


where is JNDI being used in java platform?

2 Answers  


What are the different types of collections views being provided by the map interface? : java collections

0 Answers  






i need java 1+ experience resume on java developer kindly send me my mail id:srikanthreddy1.marla@gmail.com

1 Answers  


what is difference between struts1.2 and struts2.0

1 Answers  


How do you create UserTransaction Object? How do you rollback a transaction in a method?

1 Answers   HCL,


What is difference between Application Server and Web Server?

1 Answers   Logica CMG, SCS,


how to deploy the web application ?

2 Answers   Accent,


Explain JSP life cycle?

2 Answers   Accenture,


what is diff string and stringbuffer

7 Answers   CTS, HCL,


Categories