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

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

1 Answers   IBM, TATA,


what is hibernate ceteria ?

4 Answers   Fidelity,


How do I find jre path in windows?

0 Answers  


What is markup language?

1 Answers  


What is the use of hashcode in java ?

0 Answers  






what is the difference between through and throws?

2 Answers   HCL,


What is the difference between comparable and comparator in java.util pkg?

0 Answers  


Can any one tell me How to explain bank project desription in interview

3 Answers   Infosys, Wipro,


How is hashset maintained in memory by java ?

0 Answers  


what is mean by hasing and maping in java platform and advantage?

0 Answers   CTS,


I have include a jsp page by using <jsp:include page="/.../xyz.jsp"/> The thing is that the xyz.jsp page has its submit button.When i click on that button the whole main page get refreshed.But i want to refresh only the xyz.jsp page.How could i achive it so that i can only refresh the xyz.jsp not the main page page?

4 Answers  


What are maps interfaces in the java collections? : java collections

0 Answers  


Categories