what is difference between throw and throws in exception?
Answer Posted / lokesh
throws is used for throwing an exception from a method to
jvm, the jvm should handle it.where us throw is used when
user needs to raise his own exception.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Explain the importance of finally over return statement?
Explain about doubly linked list
What is charat java?
What is the use of arrays tostring () in java?
Why do we need strings in java?
What do you mean by an object in java?
Why does java doesnt suuport unsigned values?
What is oop in java?
What is the syntax and characteristics of a lambda expression? Explain
Is space a char?
What is the difference between an array and an array list?
What does the three dot emoji mean?
How do you declare an array that will hold more than 64KB of data?
What are examples of modifiers?
what is the difference between process and thread? : Java thread