what is difference between throw and throws in exception?

Answer Posted / shiva

throw is used for to through exception system explicitly,and
throws is u sed for to throws exception means throws
ioexception and servletexception and etc.........

Is This Answer Correct ?    41 Yes 29 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is object data type?

563


What is the importance of main method in Java?

572


What is java oops?

551


Explain an algorithm to find depth of a binary tree.

546


How to sort array of 0 and 1 in java?

541






Are maps ordered java?

504


Will the jvm load the package twice at runtime?

571


What is finalize()?

606


Difference between ‘>>’ and ‘>>>’ operators in java?

639


What is java in layman terms?

523


What do you understand by the term wrapper classes?

540


What is the difference between instanceof and isinstance?

561


What is a programming object?

555


How do you detect memory leaks?

578


What is meant by object oriented programming – oop?

543