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


Please Help Members By Posting Answers For Below Questions

Can an interface implement another interface?

580


Why is java not 100% pure oops?

623


What are access specifiers available in java?

585


What is Classloader in Java?

640


Why method overriding is used?

543






What is java autoboxing?

541


What is a marker interface?

580


What is jpa specification?

539


When will you define a method as static in Java?

576


How many static init can you have?

689


What do you understand by an io stream?

590


what state does a thread enter when it terminates its processing? : Java thread

603


Why is multiple inheritance not supported in java?

564


Are constructors methods?

572


Will set allow duplicates in java?

507