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

What does the jdbc databasemetadata interface?

929


What is JDBC Savepoint? How to use it?

1143


What class.forname does, while loading the drivers?

914


What are the main steps in java to make JDBC connectivity?

971


Is uri the same as url?

868


If you are truncated using JDBC, how can you that how much data is truncated?

1010


Which is best database for java?

933


What are the advantages of database connection pooling?

876


Why is odbc needed?

870


Result set’s index starts with 0 or 1?

982


What is jdbc and its advantages?

989


What are types of jdbc drivers?

955


Give a way to check that all result sets have bin accessed and update counts are generated by execute method.

895


Discuss the procedure of retrieving warnings?

935


What are the different types of resultset?

900