what is the meaning of following code snippets
Class c=class.forName(driverClassName);
Driver d=(driver)c.newInstance();
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 |
How do we load the drivers?
How a database driver can be loaded with jdbc 4.0 / java 6?
What does connection pooling mean ?
Explain how data flows from view to db and reverse
What is JDBC Transaction Management and why do we need it?
What does the jdbc databasemetadata interface?
How can I retrieve a String or other object type without creating a new object each time?
How MS-Access DB can be accessed over a network, using JDBC API?
What is ojvm used for?
Why do we need jdbc?
How can you make a connection?
How can you load the drivers in jdbc?