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
Write a program in java to find the maximum and minimum value node from a circular linked list.
Is java map thread safe?
Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?
Which java ide is used the most?
What is pojo class in java?
How do you create immutable object in java?
Why java doesn’t support multiple inheritances?
What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?
What are the basics of core java?
What is flush () in java?
What are the data types supported by java?
What is the exact difference in between Unicast and Multicast object? Where will it be used?
What is the internal implementation of set in java?
Why to use nested classes in java? (Or) what is the purpose of nested class in java?
What is nan inf?