Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


PreparedStatement is a pre compiled statement but where it's
pre compiled ?

Answers were Sorted based on User's Feedback



PreparedStatement is a pre compiled statement but where it's pre compiled ?..

Answer / aravind

Hi Manikandansit

There is a small correction in my answer prepared statement
will be parsed for the first time when it executes any query
and there onwards parsed query will be maintained in some
sort of pool....hence next time when it tries to execute
mutilple queries with different values parsing will not
happen again...that's how we say it as precompiled...so this
will reduce the processing time when u have multiple rows of
data to insert..

I hope this will help you...if u r not satisfied with the
answer please do let me know.

Is This Answer Correct ?    12 Yes 0 No

PreparedStatement is a pre compiled statement but where it's pre compiled ?..

Answer / manikandansit

thanks aravind.

Is This Answer Correct ?    5 Yes 1 No

PreparedStatement is a pre compiled statement but where it's pre compiled ?..

Answer / amitabha

What is meant by parsing here?

Is This Answer Correct ?    2 Yes 0 No

PreparedStatement is a pre compiled statement but where it's pre compiled ?..

Answer / aravind

Hi,
in prepared statement when u mention the query that time
only statement will be internaly sent to DB and checks for
the query syntax, so when u execute it directly executes
the statement.

PreparedStatement pstmt = conn.prepareStatement("insert
into table (column2) values ("My Value") where id = 1000");

//pstmt is already compiled

pstmt.execute();

Is This Answer Correct ?    5 Yes 7 No

Post New Answer

More JDBC Interview Questions

How many ways can you update a result set?

0 Answers  


why are using type4 driver in realtime projects?

4 Answers  


What are common JDBC Exceptions?

0 Answers  


What do you mean by metadata and why we are using it?

0 Answers  


Why can't Tomcat find my Oracle JDBC drivers in classes111.zip?

0 Answers  


State the three different ways in which you can create a table?

0 Answers  


What is connection pooling and why it is used?

0 Answers  


i have 1000 records in resultset, how to get first 100 records from resultset, because resultset fetch all 1000 records at a time?

8 Answers   HSBC,


What is jdbc and its types?

0 Answers  


What are the different types of lockings in jdbc?

0 Answers  


How do we call a stored procedure from jdbc?

0 Answers  


Describe odbc?

0 Answers  


Categories