Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Forums
Register
Login
Databases
»
JDBC and Relational Databases
Statement, an interface ?
Vilas Lawande
,
Ranch Hand
Jan 27, 2010 01:14:25
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
Statement stmt =con.createStatement();
As Statement is an interface,How object is created for Statement ?
Ulf Dittmer
,
Rancher
Jan 27, 2010 01:39:25
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
The same way it is created for all other interfaces: a class that implements that interface is instantiated. You can find out which one that is by calling stmt.getClass().getName().
Vilas Lawande
,
Ranch Hand
Jan 27, 2010 02:07:09
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
Thanks
Post by:
autobot
Uh oh, we're definitely being carded. Here, show him this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
This thread has been viewed 1096 times.
Similar Threads
Problem Compiling
Extending interface
can a batch have multiple prepared statements
Java in General
Interface Q
More...
All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 09:57:42
.