what is difference between throw and throws in exception?
Answer Posted / pavithra
throws is used to throw an exception from the method
without handling that exception where as 'throw' is used
to throw the exception to catch block and handle it.
| Is This Answer Correct ? | 123 Yes | 79 No |
Post New Answer View All Answers
Realized?
What is meant by inheritance and what are its advantages?
Is sizeof a keyword in java programming?
Why deletion in linkedlist is fast than arraylist?
What is final keyword in java? Give an example.
In a container there are 5 components. I want to display all the component names, how will you do that?
What does the “final” keyword mean in front of a variable? A method? A class?
What is another word for methodology?
Can you call a method in a method?
What are the types of strings?
How hashmap works in java?
Should a main method be compulsorily declared in all java classes?
Is a copy constructor?
What happens if a constructor is declared private?
Can there be an abstract method without an abstract class?