Where to insert try/catch in java code
<p>I am very new to Java and can't understand where try/catch needs to go in the following code.  There is much more to this project, however this is the problem area</p>

<pre><code>Statement stmt = con.createStatement();
    String query = "SELECT FirstName, LastName FROM Customer";
    ResultSet rs = stmt.executeQuery(query);
    while (rs.next())
    {
        String ln = rs.getString("FirstName");
        String ln1 = rs.getString("LastName");
        System.out.println(ln + " " + ln1);
    }
</code></pre>