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



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

Answer / 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

More JDBC Interview Questions

How do we load the drivers?

0 Answers  


How a database driver can be loaded with jdbc 4.0 / java 6?

0 Answers  


What does connection pooling mean ?

0 Answers  


Explain how data flows from view to db and reverse

0 Answers   Bosch,


What is JDBC Transaction Management and why do we need it?

0 Answers  






What does the jdbc databasemetadata interface?

0 Answers  


How can I retrieve a String or other object type without creating a new object each time?

0 Answers  


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

0 Answers  


What is ojvm used for?

0 Answers  


Why do we need jdbc?

0 Answers  


How can you make a connection?

0 Answers  


How can you load the drivers in jdbc?

1 Answers  


Categories