what is difference between throw and throws in exception?
Answer Posted / suman
"throw" is used to handle user-defined exception.
JVM handles the exceptions which are specified by "throws"
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you generate random numbers in java?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
How many types of flags are there?
What type of variable is gender?
What is abstraction in java?
Explain spliterator in java8?
What does java stand for?
Explain illegalmonitorstateexception and when it will be thrown?
What is the symbol for space?
What do you mean by of string::valueof expression in java 8?
Can we store variables in local blocks?
What are different type of exceptions in java?
What is private static class in java?
Can we overload the constructors?
How to Sort Strings which are given in List and display in ascending order without using java api.