This post originated from an RSS feed registered with Java Buzz
by Javin Paul.
Original Post: Difference between throw vs throws in Java
Feed Title: Java67
Feed URL: http://www.java67.com/feeds/posts/default?alt=rss
Feed Description: Java and technology tutorials, tips, questions for all programmers.
throw and throws are two Java keyword related to Exception feature of
Java programming language. If you are writing Java program and familiar with
What is Exception in Java, its good chance that you are aware of What
is throw and throws in Java. In this Java tutorial we will compare throw vs
throws and see some worth noting difference between throw and throws in Java.
Exception handling is an important part of Java
programming language which enables you to write robust programs. There are
five keywords related to Exception handling in Java e.g. try, catch, finally, throw and throws. Apart
from difference between final,
finally and finalize,throw vs throws is
one of the frequently asked Java
interview question. Difference listed here will not only help you to answer
this interview question but also understand concept behind throw and throws
better.