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 are 4 drivers available in JDBC? At what situation are four of the drivers used?
What is difference between odbc and jdbc?
What are the advantages of database connection pooling?
How do you determine the sensitivity of the ResultSet object?
Jdbc-odbc bridge is multi-threaded or not?
State the different connection methods used for creating different types of sql.
Which Java and java.sql data types map to my specific database types?
What is the advantage of namedparameterjdbctemplate?
Write an sql to find all records having all upper case alphanumeric characters in a field ?
Can I get a null resultset?
What is jdbc connection string?
What are the types of statements in jdbc?
How can you create jdbc statements?
Why do we use jdbc?
Is it possible to connect to multiple databases? Using single statement can we update or extract data from two or three or many databases?