What's the best practice in using if/else as a substitute for try/catch or vice versa?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/651619/what-is-the-advantage-of-using-try-catch-versus-if-else">What is the advantage of using try {} catch {} versus if {} else {}</a>  </p>
</blockquote>



<p>I'd like to know whether, generally speaking, it's better to use a try/catch construct or to try to prevent this exception by (excessive?) use of if/else. Example: should I catch a FileNotFoundException, or should I test and try to find the file first. </p>

<p>What would be the best approach?</p>
