< Back
Page 5 of 5
Like this article? We recommend
Summary
While exceptions are a useful facility in Java and allow us to handle errors and other unusual circumstances in an appropriate manner, they carry a performance penalty. This penalty can cause major bottlenecks in a program if exceptions are not used the way they were intended to be used, but instead as a way to control the flow of execution. While this may be acceptable in some situations where readability of code is most important, if the code is in a critical region, this way of using exceptions should definitely be avoided.
< Back
Page 5 of 5