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

What are the different types of drivers under jdbc?

0 Answers  


what is connection pooling?

6 Answers   Wipro,


Result set’s index starts with 0 or 1?

0 Answers  


Why do we need jdbc driver?

0 Answers  


What is the major difference between java.util.date and java.sql.date data type?

0 Answers  






please tell me the name and url path for type-4 driver ?

1 Answers  


is that compulsory to have Primarykey-forignkey for joints (outer inner,equal)

2 Answers   IonIdea,


Describe odbc?

0 Answers  


What is DML?

0 Answers  


What is a connection string used for?

0 Answers  


Is jdbc part of j2ee?

0 Answers  


What is jdbc thin client in oracle?

0 Answers  


Categories