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
How to invoke Oracle Stored Procedure with Database Objects as IN/OUT?
Is jpa faster than jdbc?
What is jdbc type?
How can we move the cursor in a scrollable result set?
How do java applications access the database using jdbc?
What is the execute method in java?
How can I write to the log used by DriverManager and JDBC drivers?
What is jdbc template?
Explain the process of creating tables using NetBeans IDE?
What are the different types of statements in jdbc?
What is the role of class.forname while loading drivers?
What is url in jdbc connection?
What is serialization and deserialization in java programming?
What are the functions of the jdbc connection interface?
Explain the necessary steps to connect to the database in java?