Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

preparedstatement p= new preparedstatement
is it possible ?

Answer Posted / t.l.n.prasad

no becoz PraparedStatement is an interface we can't
instantiate direcly but we can instantiate like this

PreparedStatement ps=con.PreparedStatement("Query");

where "con" is an Object of Connection interface
ie
Connection con=DriverManager.getConnection();

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does connection pooling mean ?

989


What is jdbc in dbms?

1037


What is database deadlock ? How can we avoid them?

1052


What is two-phase commit in the database?

1046


What is ODBC and JDBC? How do you connect the Database?

1042


Explain in detail about JDBC and its general features?

955


Is possible to open a connection to a database with exclusive mode with JDBC?

964


How can I determine where a given table is referenced via foreign keys?

1002


Why can't I invoke the ResultSet methods afterLast and beforeFirst when the method next works?

1197


How MS-Access DB can be accessed over a network, using JDBC API?

2430


What is in terms of jdbc a datasource?

1077


What are the types of jdbc drivers that exist?

1010


What are the different types of lockings in jdbc?

923


How do I insert/update records with some of the columns having NULL value?

939


Can we return resultset in java?

926