Close ResultSet Object Explicitly Before Closing Connection when Using Servlets
Most Java programmers close a connection with database directly without closing the ResultSet. This is okay with standalone Java programs, where the Java compiler automatically closes the Resultset for you,