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

How do you debug your java program?

2 Answers   HCL, Inforica,


where is JNDI being used in java platform?

2 Answers  


what is the IDE that you have used to write your java programs?

2 Answers   Inforica, Interface Software,


What is Visual Source Safe(source control Tool)?

1 Answers  


what is difference between vector and arraylist?.

4 Answers   C DAC, HCL,






what debugging tool that can be used to debug the java programs?

1 Answers   Inforica,


What are the considerations to be made in case of loops in java ?

0 Answers  


what is difference between business deligate and session facade ?

2 Answers   Fidelity,


What is the difference between Eclipse and MyEclipse?

7 Answers   IBM, Wavex,


What are the different types of ways where you can iterate over a list? : java collections

0 Answers  


Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?

0 Answers   Cap Gemini,


Which is the better framework for web applications, struts or spring, and why?

1 Answers   IBM, TATA,


Categories