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 are local variables?
Why call by value prevents parameter value change?
How infinite loop is declared?
How do you reverse a word in java?
What is an immutable object?
Can a class be private in java?
What is a flag variable?
What is 16 bits called?
what is synchronization? : Java thread
How can you make a class serializable in java?
What is the difference between static class and normal class?
What is the implementation of destroy method in java. Is it native or java code?
What is proper subset?
What is the meaning of find and replace?
Can we declare a constructor as final?