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


Statement, PrepareStatement and Callable all these are
interfaces. Thought it is a interface how come we are
creating objects and calling methods("preparestatement()")
in it. In which class this method is defined.
Please let me know. Thanks in advance.

example:
PreparedStatement pre = con.prepareStatement(
"UPDATE COFFEES SET SALES = ? WHERE COF_NAME LIKE ?");


Answers were Sorted based on User's Feedback



Statement, PrepareStatement and Callable all these are interfaces. Thought it is a interface how c..

Answer / brahma

Driver vendor provides implementation classes for these
interfaces.

for example: oracle
all the methods implemented in OracleStatement class.

Is This Answer Correct ?    2 Yes 0 No

Statement, PrepareStatement and Callable all these are interfaces. Thought it is a interface how c..

Answer / brahma

Driver vendor provides implementation classes for these
interfaces.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JDBC Interview Questions

Can I enable requests to a jdbc connection pool for a database connection to wait until a connection is available?

0 Answers  


What is jdbc databasemetadata interface?

0 Answers  


Explain the importance of drivermanager.

0 Answers  


What is the purpose of jdbc resultset interface?

0 Answers  


What do you understand by jdbc statements?

0 Answers  


Explain the various types of locking system in jdbc?

0 Answers  


What should be done for auto generating primary key id in a table ?

0 Answers  


Which type of driver provides jdbc access via one or more odbc drivers?

0 Answers  


How many types of resultset are there in jdbc?

0 Answers  


Which is faster jdbc or odbc?

0 Answers  


What will happen when ResultSet is not closed?

1 Answers   CTS,


Is jdbc and orm?

0 Answers  


Categories