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 field name?

587


which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at priya_gupta@gmail.com

3190


What is an object’s lock and which object’s have locks?

504


What is variable and rules of variable?

516


what is the purpose of "virtual"?

570






Can constructor be synchronized?

543


What is the Scope of Static Variable?

730


Explain about the security aspect of java?

575


What is an abstract class and what is it’s purpose?

539


What is == in java?

565


What are functions in java?

499


What is qualitative variable?

524


What is an example of a constant variable?

533


Can we restart a thread already started in java?

582


How do you sort an array in java?

541