What is the difference between throw and throws?
What is the similarity between try and throw?
Answer Posted / giri
throw is used to throw an exception manually, where as
throws is used in the case of checked exceptions
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
How do you remove an object from an arraylist in java?
What is the difference between the paint() and repaint() methods in java programming?
What does a void function return?
explain what is transient variable in java?
How arrays are stored in memory in java?
How to reverse a string in java?
Can we create a constructor in abstract class?
What is the largest data type in java?
What is a nested structure?
What is set in java?
Which collection allows duplicate values in java?
How many types of gc are there in java?
What is the difference between array and array list in java?
How do you sort words in java?
How do you remove an element from an arraylist in java?