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
Can an abstract class be a final class?
What happens when main () method is declared as private?
What is an association?
What is thread life cycle in java?
What is a variable declaration?
Can you declare the main method as final?
What is the final keyword denotes?
Which is bigger float or double?
If a variable is declared as private, where may the variable be accessed?
How long will it take to learn java?
What is prime number in java?
what is abstract class in Java?
Explain restrictions for using anonymous inner classes?
What is numel matlab?
What are the three parts of a lambda expression?