how to handle the exceptions and in how many ways

nicemothi's Avatar
Light Poster
What is the basic difference between the 2 approaches to exception handling.
1> try catch block and
2> specifying the candidate exceptions in the throws clause?
When should you use which approach?
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
I don't see the second method as the way to handle exception but its a way to throw exception.