statement in jdbc can execute parameterized query?
To execute a query, call the executeQuery() or executeUpdate method. Here is an executeQuery() example: String sql = "select * from people where firstname=? and lastname=?"; PreparedStatement preparedStatement = connection. ... As you can see, the executeQuery() method returns a ResultSet .