Forums Register Login

Statement, an interface ?

+Pie Number of slices to send: Send
Statement stmt =con.createStatement();

As Statement is an interface,How object is created for Statement ?
+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().
+Pie Number of slices to send: Send
Thanks
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.