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

Define preparedstatement.

979


Is jdbc faster than hibernate?

993


What do you understand by DDL and DML statements?

917


What is odbc and jdbc drivers?

950


What is odbc. how is it related to sql cli?

1036


What is jdbc databasemetadata interface?

1050


Briefly tell about the jdbc architecture.

990


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

2428


What does the jdbc driver interface do?

988


What is database deadlock ?

1172


How does a file store compare with a jdbc store?

1192


What is device controller?

1054


How can we store the file in the oracle database?

927


What driver should I use for scalable Oracle JDBC applications?

976


Why can't Tomcat find my Oracle JDBC drivers in classes111.zip?

969