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 the point of java?

546


What is io stream in java?

511


How does arraylist work in java?

524


What is a ternary operator in java? What is an interface?

546


Explain method local inner classes ?

587






What is return keyword in java?

556


What happens to a static var that is defined within a method of a class?

547


Can Exception handling we can handle multiple catch blocks?

640


How java enabled high performance?

578


Why heap memory is called heap?

581


How many bits is a string?

521


what do you mean by classloader?

545


Is there any limitation of using inheritance?

566


What are inbuilt functions?

562


What is the difference between dom and sax parser in java?

526