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
What is the difference between size and length in java?
Implement two stacks using a single array.
What is a qms manual?
What is broken and continue statement?
When can an object reference be cast to an interface reference in java programming?
Can I declare a class as private?
Why hashcode is used in java?
Why singleton class is used in java?
What is the difference between Grid and Gridbaglayout?
What is difference between pointer and reference?
What are the classes of java?
Explain the selection sort algorithm?
Difference between this() and super() ?
Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?
What is the difference between the boolean & operator and the && operator in java programming?