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
Describe how the jdbc application works.
code to insert values/rows into oracle database from a java swing textfield when a button is pressed(using preparedstatements)
Give steps to connect to the db using jdbc?
Explain the role of driver in jdbc.
What is getconnection method in java?
What is batch processing and how to perform batch processing in jdbc?
What are the benefits of PreparedStatement over Statement?
What is an escape syntax?
Why we use jdbc instead of odbc?
What are the common jdbc exceptions?
What do you mean by database connection pooling?
Explain about column name and getter method?
What are the packages are used in jdbc?
Why isn't the java.sql.DriverManager class being found?
Why prepared statements are faster?