Exception handling – throws
- 15th Jul 2018
- 0
- 8401
- Exception handling using throws in java how can we use throws to handle the exception java throws keyword throws example in java when can we use throws to handle the exception
We already know that, we can handle exceptions using try-catch block. But in some cases, its good to use “throws” instead of using ty-catch block. In some cases, its not required to handle the exception in a method which is called by another method so that caller will handle this exception. Client program knows how […]