what is difference between throw and throws in exception?
Answer Posted / chirag
throw will throws the exception,
and throws declares that the function will throw an exception
you should catch all every functions throwing and exception
u declare it or catch it
Is This Answer Correct ? | 29 Yes | 25 No |
Post New Answer View All Answers
Is Java a dying language?
how we can make a read-only class in java?
How many bits is a char?
Give me an example of array and linked list? Where they can be used?
What is the difference between this() and super() in java?
You're given a Boolean 2D matrix, can you find the number of islands?
What is the purpose of main function in java?
What is continuity of a function?
Can we write a class without main method in java?
What is the equal sign?
How do you define a singleton class?
What do you mean by ternary operator in java?
What is a flag value?
Why parsing is done?
Can we override tostring method in java?