Difference on throw and throws keyword Java

Tutorials Shared by the Internet Community

Advertisements


Synopsis

If you have used Exception in Java programming language then you must be familiar with throw and throws keyword. difference between throw and throws i

Statistics

  • Total Hits - 20617

  • Total Votes - 122 votes

  • Vote Up - 65 votes

  • Vote Down - 57 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Core JAVA

  • Submitted By - Javin Paul

  • Submitted on - 2012-02-25 17:00:27

Description

If you have used Exception in Java programming language then you must be familiar with throw and throws keyword. difference between throw and throws is a popular java interview question and main difference is throws is used to declare Exceptions thrown by method while throw is used to actually throw Exceptions. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements