what is difference between throw and throws in exception?
Answer Posted / clement
throws specifies that a method could throw an exception
while throw is used to throw a particular type of exception
throw IOException;
public void clem()throws exception
| Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
What is the definition of tree ?
What is an exception? difference between Checked and Unchecked exception in Java
What methodology can be utilized to link to a database?
What are the problems faced by java programmers who don't use layout managers?
How do you format in java?
What does the “final” keyword mean in front of a variable? A method? A class?
Differences between traditional programming language and object oriented programming language?
Explain different ways of creating a thread. Which one would you prefer and why?
What purpose do the keywords final, finally, and finalize fulfill?
Why is stringbuffer thread safe?
What is a java object and java application?
What are the main uses of this keyword?
Which is easier .net or java?
Is java hashset ordered?
In a container there are 5 components. I want to display all the component names, how will you do that?