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


Please Help Members By Posting Answers For Below Questions

What is treeset in java collection?

621


Can we overload final method in java?

638


What is the file type?

669


What is difference between throw and throws ?

704


What is difference between local variable and global variable?

566






How hashmap works in java?

680


Does java have extension methods?

613


Is a case study a method or methodology?

541


Is java code slower than native code?

639


What are the kinds of polymorphism?

717


What is the static method?

649


Write a program to solve producer consumer problem in java?

654


Is binary a low level language?

610


How thread scheduler schedule the task?

683


Can we override final method?

654