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
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
What is general methodology?
What is overloading and overriding in java?
whatis Home interface and Remoteinterface? with example?
Give me example of derived data types.
What is final int?
What a static class can contains?
What is a "pure virtual" member function?
Is Constructor possible in abstract class in java ?
I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?
What is java oops?
What’s the difference between unit, integration and functional testing?
What are parameters in a method?
Can we assign null to double in java?
How to create packages in java?