This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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: 3775

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();
 
Similar Threads
SerialConnection issue
resultset problem
How to change sid in program
How to use the connection object defined in another class from the Main class
import java.sql