I\'m writing a tool in Java which submits statements to a database, which are later run. I\'m using JDBC to connect to the database. The database is Oracle 10g.
Without executing the Query, your cannot get a feedback(or resultset, about it. Connection.preparedStatement just return you a PreparedStatement object, which is just a handler.
PreparedStatement.executeQuery() is only what executes the query actually, pushing to the database.