what is difference between throw and throws in exception?
Answer Posted / prasanna
throw - It is used to throw an Exception.
throws - This is used to specifies that the method can
throw Exception
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How do you sort data in java?
What are different exception types exceptions available in java ?
Can we overload final method in java?
Can we execute a program without main?
What is the difference between equals() and?
Name few java.lang classes introduced with java 8 ?
How do you change an int to a string?
What is compareto () in java?
Is static a keyword in java?
What is the difference between applet and application?
what is a green thread? : Java thread
what is the major difference between linkedlist and arraylist in java?
Does anyone still use java?
Why are data types important?
Why scanner is used in java?