This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Nagaraju, There isn't a connection leak, but there is a resource leak. You need to close the resultset, then the statement and then the connection. The lower level objects are no longer accessible to be closed after you close the connection.