Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding createStatement();

 
Senthil Kumar
Greenhorn
Posts: 21
Chrome Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Pie
Posts: 3918
10
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Senthil Kumar
Greenhorn
Posts: 21
Chrome Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay Vijitha Kumara. Thanks
 
ashok bantu
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends on the JDBC driver used. Read the documentation which come along with it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic