title: Checking if table exist in database
body: <p>I have a <code>JDBC</code> code which retrieves data from database and get queries at runtime. At runtime, it will go to database and will try to get data and write it to a file. If table is not present it gives exception that table not found.  How to handle this? </p>
  
  <p>Here I can not use,</p>
  
  <pre><code>ResultSet rs = md.getTable() 
  </code></pre>
  
  <p>I have to check at runtime only.</p>
  
  <p>SQL Example : <code>select * from table;</code> Preparedstatement and ResultSet here,</p>
  
  <p>At runtime this table variable will get names of table when loop above this will iterate.  If table is not there then it gives this exception on console.</p>
  
  <p>How to handle this smoothly?</p>