How we say that PreparedStatment is Precompiled? where it
will be compiled?

Answers were Sorted based on User's Feedback



How we say that PreparedStatment is Precompiled? where it will be compiled?..

Answer / venkatesh.t

prepared Statements are compiled at database server side.
Once the statement is passed to the database the Statement
is parsed for validness and checked weather the table exist
or not .if the statement is valid the server holds the
statement object and process the multiple request from the
client.
Finally parsing of the statement is done at server side that
to only once.

Is This Answer Correct ?    7 Yes 1 No

How we say that PreparedStatment is Precompiled? where it will be compiled?..

Answer / dsr

When ever call the preparedstatement at firsttime,at that
time, the statement will be parsing as a query string and
create the object. This function will be doing in
serverside.

Is This Answer Correct ?    2 Yes 0 No

How we say that PreparedStatment is Precompiled? where it will be compiled?..

Answer / natraj

Hi,
In parsings there are two types.One Hard Parsing and second
is softparsing. Firt time hard parsing will happen.That
means wheather this query is syntatically correct or not +
what is the table name,no of cols,what are the index for
that table,any sequences and foreign key related details
etc. , and firt time only hard parsing and after that it is
going to cache it at database side only,from next time
onwards only soft parsing that means only specified record
values it will retrive.

Is This Answer Correct ?    2 Yes 0 No

How we say that PreparedStatment is Precompiled? where it will be compiled?..

Answer / paks chaudhary

prepared Statements are compiled at database server side.
Once the statement is passed to the database the Statement
is parsed for valid and checked weather the table exist
or not .if the statement is valid the server holds the
statement object and process the multiple request from the
client.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More JDBC Interview Questions

What is the difference between setmaxrows(int) and setfetchsize(int)?

0 Answers  


What is new in JDBC 2.0?

0 Answers  


What are the higher level apis under development on top of jdbc currently?

0 Answers  


Is jdbc a middleware?

0 Answers  


What are the benefits of PreparedStatement over Statement?

0 Answers  






What does connection pooling mean ?

0 Answers  


How can we set null value in jdbc preparedstatement?

0 Answers  


How can a java objects be stored in database?

3 Answers   IBM,


Explain the sequence of steps to connect to the database?

3 Answers   Wipro,


Why do we need jdbc?

0 Answers  


How can I determine where a given table is referenced via foreign keys?

0 Answers  


What is an advantage of using the jdbc connection pool?

0 Answers  


Categories