A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
why Statment interface is not Deprecated.??
Joined: Sep 09, 2006
Nov 29, 2006 01:34:00
Can any one please tell me that why Statement interface in java.sql package is not Deprecated as all fuctionality are provided with PreparedStatment?
Joined: May 26, 2003
Nov 29, 2006 16:22:00
There are still cases where someone would want to use Statement over PreparedStatement. For example, if you had no parameter substitution and knew the statement would only be executed once. In this case, a Statement would be more efficient.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
Joined: Mar 02, 2006
Nov 30, 2006 00:25:00
Just as a note, this is essentially the same advice I gave to his cross-posted question on the Java Intermediate forum.
@OP Please don't cross post. It is not considered polite in forum communities.
Joined: Mar 06, 2001
Nov 30, 2006 00:42:00
OK, I closed the dupe.
I agree. Here's the link:
subject: why Statment interface is not Deprecated.??
Why Statemet interface is not Deprecated ?
is singlethread model is thread safe?
Single Thread Model
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014