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...

what is the meaning of following code snippets
Class c=class.forName(driverClassName);
Driver d=(driver)c.newInstance();

Answer Posted / srikanth reddy

That is nothing but
Class c=class.forName(driverClassName);
loading the class into main memory dynamically

=====================================

Driver d=(driver)c.newInstance();
ie if already created instance returns thst otherwise it will a new instance and returns thst

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Prepared statements are faster. Why?

1054


What is meant by dao?

940


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

1065


What is the meaning of “dirty read” in the database?

1038


Why “no suitable driver” error occurs?

1089


What class.forname will do while loading drivers of jdbc?

943


How many jdbc driver types are there?

923


Is uri the same as url?

903


How do we call a stored procedure from jdbc?

977


What is dburl?

988


In which ways is driver class is registered with drive manager?

927


How can you use preparedstatement in jdbc?

998


What is a java driver?

1016


What is jdbc architecture in java?

948


Is jdbc a middleware?

953