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
What does the jdbc databasemetadata interface?
What is JDBC Savepoint? How to use it?
What class.forname does, while loading the drivers?
What are the main steps in java to make JDBC connectivity?
Is uri the same as url?
If you are truncated using JDBC, how can you that how much data is truncated?
Which is best database for java?
What are the advantages of database connection pooling?
Why is odbc needed?
Result set’s index starts with 0 or 1?
What is jdbc and its advantages?
What are types of jdbc drivers?
Give a way to check that all result sets have bin accessed and update counts are generated by execute method.
Discuss the procedure of retrieving warnings?
What are the different types of resultset?