aspose file tools*
The moose likes JDBC and the fly likes Regarding createStatement(); Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Regarding createStatement();" Watch "Regarding createStatement();" New topic
Author

Regarding createStatement();

Senthil Kumar
Greenhorn

Joined: Jul 17, 2007
Posts: 21


Hi Friends!!..

I heard from my friend that he got a interview question that

createStatement() is in which CLASS ?



i found createStatement() is a method which is in java.sql.Connection interface .

which class has createStatement() code ? or In which class this createStatement() exists.

please let me know.

Thanks in advance.


Preparing for SCJP 1.6
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3838

which class has createStatement() code ? or In which class this createStatement() exists.


It is in the interface implementation class provided by the vendor (i.e: within the JDBC driver package).


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Senthil Kumar
Greenhorn

Joined: Jul 17, 2007
Posts: 21
Okay Vijitha Kumara. Thanks
ashok bantu
Greenhorn

Joined: Jan 30, 2009
Posts: 10
Vijitha Kumara wrote:
which class has createStatement() code ? or In which class this createStatement() exists.


It is in the interface implementation class provided by the vendor (i.e: within the JDBC driver package).



Hi can please mention the exact class name
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Depends on the JDBC driver used. Read the documentation which come along with it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding createStatement();