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
What is JDBC DataSource and what are it’s benefits?
What happens if we don't close the connection in jdbc?
What is meant by jdbc?
Why do you use a data source object for a connection?
What are the common jdbc exceptions?
List some new features available in jdbc 4.0?
Explain the role of driver in jdbc.
What does connection pooling mean ?
How to invoke Oracle Stored Procedure with Database Objects as IN/OUT?
How can you make the connection using jdbc?
What is the JDBC?
How to check jdbc driver version in websphere?
What is JDBC RowSet? What are different types of RowSet?
What is jdbc odbc connection?
What is the major difference between java.util.date and java.sql.date data type?