What is the difference between throw and throws?
Answer Posted / neeraj kumar singh
When we wants to throw an exception explicitly in the program use the throw keyword.Whether a throws keyword is used when a system throws an exception itself.
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Why is string builder not thread safe?
What is remote method invocation (rmi)?
How does map works in java?
What does java ide mean?
Explain the importance of finally block in java?
Which collection does not allow duplicates in java?
Whats the difference between notify() and notifyall()?
Can you sort a string in java?
Can private class be inherited in java?
What does serializing data mean?
What is a double?
What is a finally block?
Who found java?
List some important characteristics on jre
What is sizeof () operator?