Statement and PreparedStatement?
One of hundreds of answers available with our premium content service.
A: A standard Statement is used to create a Java representation of a literal SQL statement and execute it on the database. The statement input may be any valid SQL, but the class has different methods for inert queries and update statements that change the contents of the database: executeQuery(String) and executeUpdate(String) respectively.
… full answer hidden
Premium members click below for full answer
What's the difference between Statement and PreparedStatement?