preparedstatement p= new preparedstatement
is it possible ?
Answer Posted / surya, samcomm technologies pv
yes, but that is not the way to create object for the
interface. using Anonymous inner class.
syntax...
PreparedStatement ps=new PreparedStatement() {
U should implement all the methods of this
interface inside this block.
};
or if u feel this is overhead, then simply get the
reference for this interface in the following way.
PreparedStatement ps=con.prepareStatement("query");
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
How to insert an image or raw data into database?
How can we execute stored procedures using callablestatement?
any one can explain about policy file rule? when i connect database with applet then ther is no compile time error but the run time error is occureed.i.e access is denied.policy file rule is related to this problem.
What are the three parts of a jdbc url?
What is resultsetmetadata?
Which type of driver provides jdbc access via one or more odbc drivers?
How can I get or redirect the log used by DriverManager and JDBC drivers?
Explain the difference between rowset vs. Resultset in jdbc?
Explain about DSN?
What are database warnings in jdbc and how can we handle database warnings in jdbc?
What is while rs next ())?
What is JDBC RowSet? What are different types of RowSet?
What is a jdbc url?
What is a datasource in java?
In which ways is driver class is registered with drive manager?