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 difference between comparable and comparator in java.util pkg?
Runining mutiple tomcat server in a single machine is possible Yuo wil have to duplicate configuration with different port numbers
What are the different types of ways where you can iterate over a list? : java collections
waht are architecture of web application?
Why do you use Context Object
What is java collection? : java collections
What is the use of hashcode in java ?
whatis arguments &what is default argument
Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.
please mail me the interview question based on java/j2ee
when exactly should we use throws ,and wen exactly should we use the try and catch for exceptional handling
Should we create system software ( e.g operating system ) in java ?