what is difference between throw and throws in exception?
Answer Posted / chirag
throw will throws the exception,
and throws declares that the function will throw an exception
you should catch all every functions throwing and exception
u declare it or catch it
| Is This Answer Correct ? | 29 Yes | 25 No |
Post New Answer View All Answers
Java openings 3 - 5 years, Lnt Infotech. requirements - core java, J2ee, struts, hibernate Interview Date:- 19 March 2011 Time:- 9:00 AM to 12:00 Pm Interview Location - L & T Infotech, Manapakkam, Chennai Refererral PS NO:- 291649 (Please mention this when u fill the form only then u will be considered for interview) Documents Required:- Latest Resume, Photograph and last 3 payslips Mail me on vasan2211@gmail.com once u appear for interview
Is there any sort function in java?
What is an empty string in css?
Which programming language is best in future?
What is a local class in java?
What are the methods to rectify ambiguities in the interfaces in JAVA?
What is the applet security manager, and what does it provide?
What is java util?
explain local datetime api in java8?
What is the use of arraylist class in java?
What are the restrictions imposed by a Security Manager on Applets?.
Give example to differentiate between call by value and call by reference.
How many ways can you break a singleton class in java?
What is the byte range?
What are static variables and functions?