what difference between throw and throws in exception
handling.
Answer Posted / archana
throws is to handle exception by the system itself
whereas throw used by the user to handled the exception
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What are the advantages of exception handling?
What is generic class?
Give few examples of final classes defined in Java API?
What is null data type?
Can we use synchronized block for primitives?
What is data type in java?
Can we extend private class in java?
Why java doesn’t support multiple inheritances?
Is 0 true or false in java?
Can a static class have a constructor java?
do I need to use synchronized on setvalue(int)? : Java thread
In java, how we can disallow serialization of variables?
What are synchronized blocks in java?
How many types of the indexof method are there for strings?
What does the three dot emoji mean?