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 are the differences between resultset and rowset?

1131


What is JDBC API and when do we use it?

1043


Why do we need a jdbcrowset like wrapper around resultset?

1256


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

1042


What is sqlwarning and discuss the procedure of retrieving warnings?

1031


What class.forname does, while loading the drivers?

970


What are the differences between setmaxrows(int) and setfetchsize(int)?

1065


How does a file store compare with a jdbc store?

1207


Which interface handles transaction management in jdbc?

1115


Where is mysql jdbc driver located?

1039


please tell me the name and url path for type-4 driver ?

3181


What is the benefit of having jdbcrowset implementation? Why do we need a jdbcrowset like wrapper around resultset?

955


What is database deadlock ? How can we avoid them?

1059


What is a jdbc driver and how many jdbc drivers are available?

1056


What do you understand by DDL and DML statements?

921