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 instance means in java?
What are inner classes or non static nested classes in java?
Define an applet in java?
In how many ways we can create threads in java?
Can we sort arraylist in java?
What are data structures in java?
What is the primary benefit of encapsulation?
What is the loop in java?
What is the super void?
Can we declare register variable as global?
How does a for loop work?
Is string is a class in java?
How do you know if a value is nan?
Does java allow overriding static methods ?
What is the meaning of 3 dots in java?