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...

What is Statement and PreparedStatement? whatz the
difference?

Answer Posted / harish

When you execute a SQL query with Statement. It parses and
executes in the database each time. Where as in
PreparedStatement, first time it parses and executes and
subsequent times, it directly substitute the values in the
query and executes. It is faster than Statement

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the jdbc api components?

1145


Where is jdbc url mysql?

988


What are the advantages of using preparedstatement over statement?

1006


Does sql allow null values ? Can we use it within where clause ?

975


What is jdbc and odbc?

934


What is a jdbc connection pool?

934


Which is best database for java?

981


What is JDBC Driver interface?

1129


Explain the locking system in jdbc?

945


What are the advantages of database connection pooling?

916


What is a statement?

1014


Is jdbctemplate thread safe?

902


Does sql allow null values ?

967


Which package is used for jdbc application?

975


How you restrict a user to cut and paste from the html page using java programing?

887