Java Database Connectivity Question:

What is the advantage of using PreparedStatement?

Tweet Share WhatsApp

Answer:

If we are using PreparedStatement the execution time will be less. The PreparedStatement object contains not just an SQL statement, but the SQL statement that has been precompiled. This means that when the PreparedStatement is executed,the RDBMS can just run the PreparedStatement’s Sql statement without having to compile it first.

Download Java Database PDF Read All 15 Java Database Questions
Previous QuestionNext Question
What is a “dirty read”?What is Metadata and why should I use it?