What is the use of prepared statement?Ans:used to execute
pre compiled statement...so the question is when that
precompiled statement will be execute or
comiple?................
Answer Posted / nagashree
Prepared statements are used due to its 2 advantages.
Advantages:
1) We can give dynamic values.
2) The statement will be compiled only once, it need not be
compiled each & every time we give new values.
Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Does the database server have to be running Java or have Java support in order for my remote JDBC client app to access the database?
How can we retrieve data from the resultset?
What is a datasource in java?
What is a jdbctemplate?
How to insert and delete a row programmatically? (new feature in JDBC 2.0)
What are different types of JDBC Drivers?
Differentiate between a statement and a preparedstatement.
How can we execute stored procedures using callablestatement?
Where jdbc drivermanager class is used?
Why would you use setautocommit(false) in jdbc?
Explain the role of driver in jdbc.
What are the differences between statement and preparedstatement interface?
Why should we close database connections in java?
Explain Basic Steps in Writing a Java Program Using Jdbc?
What are 4 drivers available in JDBC? At what situation are four of the drivers used?