Total members 11786 |It is currently Sat Jul 20, 2019 11:47 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





I heard a question in an interview difference between throw and
throws
can any one clear my dought ?




Author:
Proficient
User avatar Posts: 280
Have thanks: 1 time

You use throw to Throw your own Exception and use throws keyword to
mention that the method you are calling will throw an Exception and it has
to be handled !

_________________
Please recommend my post if you found it helpful


Author:
Proficient
User avatar Posts: 228
Have thanks: 0 time
Post new topic Reply to topic  [ 2 posts ] 

  Related Posts  to : Difference between throw and throws
 How to throw Exceptions in Java?     -  
 difference between the >> and >>> operators     -  
 find the difference between dates in asp.net     -  
 difference between a Window and a Frame     -  
 difference between a MenuItem and a CheckboxMenuItem     -  
 Difference between Externalization and Serialzation     -  
 difference between the Boolean & operator and the &&     -  
 Difference between forward and sendRedirect     -  
 Difference between PHP echo() and PHP print()?     -  
 difference between upcasting and downcasting     -  



Topic Tags

Java Exceptions
cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com