Difference on throw and throws keyword Java

Tutorials Shared by the Internet Community

Advertisements


Difference on throw and throws keyword Java

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 - 30695

  • Total Votes - 123 votes

  • Vote Up - 65 votes

  • Vote Down - 58 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.    More detail...


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

Advertisements