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

How to test jdbc connection to sql server?

958


What is the use of jdbc api?

924


What protocol does jdbc use?

922


How you restrict a user to cut and paste from the html page using java programing?

820


What is jdbc and jpa?

916


What is JDBC Driver interface?

1052


What does adapter class provide?

877


What is ojdbc14 jar?

853


Explain about the Try Block?

914


What are the standard isolation levels defined by JDBC?

1028


Under what circumstances, that all four drivers are used?

2362


Which jdbc driver is the fastest driver?

975


State the three different ways in which you can create a table?

908


What is getconnection method in java?

871


What is the purpose of the jdbc resultset interface?

867