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
Is arraylist zero based?
how can i use a nonsynchronized hashtable?
What are the differences between getting and load method?
What's the default access specifier for variables and methods of a class?
What is difference between an object and a class?
How does sublist works in java?
What is a protected method?
How is java hashmap implemented?
What is comparator in java?
What is the difference between @before and @beforeclass annotation?
What is thread count in java?
What is the purpose of return statement?
What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?
What does string mean in java?
What is the purpose of the finally clause of a try-catch-finally statement in java programming?