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
What is stringwriter?
What is difference between variable declaration and definition?
What is the difference between instanceof and isinstance?
What is entry set in java?
Explain about abstract classes in java?
Explain java coding standards for methods?
Is set ordered in java?
What is use of super keyword in java?
Is null a value?
Explain about fail safe iterators in java?
What is use of arraylist in java?
What are the 6 boolean operators?
State the merge-sort principle and its time complexity.
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
What is a control variable example?