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
Can an interface implement another interface?
Why is java not 100% pure oops?
What are access specifiers available in java?
What is Classloader in Java?
Why method overriding is used?
What is java autoboxing?
What is a marker interface?
What is jpa specification?
When will you define a method as static in Java?
How many static init can you have?
What do you understand by an io stream?
what state does a thread enter when it terminates its processing? : Java thread
Why is multiple inheritance not supported in java?
Are constructors methods?
Will set allow duplicates in java?