This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3899
    
    9

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();
 
It's not a secret anymore!