Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   how to handle the exceptions and in how many ways (http://www.go4expert.com/forums/handle-exceptions-t7312/)

nicemothi 15Nov2007 16:40

how to handle the exceptions and in how many ways
 
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?

shabbir 15Nov2007 18:40

Re: how to handle the exceptions and in how many ways
 
I don't see the second method as the way to handle exception but its a way to throw exception.


All times are GMT +5.5. The time now is 14:17.