what difference between throw and throws in exception
handling.

Answer Posted / narayana reddy

throws indicates what type of exception is thrown by
a particular function, where as throw is used to through
user defined exceptions

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between string and new string?

546


Describe string intern() methodology

605


What is member in java?

501


Lowest Common ancestor in a Binary Search Tree and Binary Tree.

566


Can we rethrow the same exception from catch handler?

571






When should I use singleton pattern?

553


What is charat ()?

537


What is difference between core java and java ee?

482


What is hotjava?

566


What is method overloading and method overriding?

544


What are the restriction imposed on a static method or a static block of code?

603


What does the append?

503


What is java and their uses?

556


Explain the difference between an object-oriented programming language and object-based programming language?

554


How does compareto method work?

531