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

Is jdbc database independent?

1015


How are jdbc statements used?

986


What does jdbc setmaxrows method do?

1008


What is savepoint in jdbc?

970


What is SQL Warning? How to retrieve SQL warnings in the JDBC program?

1108


What are the different types of classes in the api component?

1011


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

2475


What is device controller?

1144


How many types of resultset are there in jdbc?

1011


How can we retrieve data from the resultset?

1027


Where jdbc drivermanager class is used?

1025


What is new in JDBC 2.0?

1098


What are the classes and methods used for sending sql statements to database?

1143


Is oracle client required for jdbc connection?

1024


Which package is used for jdbc application?

1026