| Author |
PreparedStatement related query
|
S Majumder
Ranch Hand
Joined: Jun 03, 2009
Posts: 243
|
|
Hi every body I have a query related to PreparedStatement.
Is it necessary to explicit cast to conn.prepareStatement(sqlQuery); ?
My code is like this :
Which one is better ?
regards,
S
|
 |
Smitesh Shinde
Ranch Hand
Joined: Feb 16, 2008
Posts: 44
|
|
|
You do not need to explicitly cast it as conn.prepareStatement itself returns object of type PreparedStatement
|
 |
 |
|
|
subject: PreparedStatement related query
|
|
|