Question: what is the difference between execute query and execute update?
Answer: Difference between execute, executeQuery and executeUpdate in JDBC. ... executeQuery method execute statements that returns a result set by fetching some data from the database. It executes only select statements. executeUpdate method execute sql statements that insert/update/delete data at the database.