ResultSet executeQuery() throws SQLException
Executes the SQL query in this
PreparedStatement object and returns the
ResultSet object generated by the query.
ResultSet object that contains the data produced by the query; never
SQLException - if a database access error occurs or the prepared statement has been closed
For more information, reference JDBC documentation for: PreparedStatement.executeQuery()