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
Prepared statements are faster. Why?
What is meant by dao?
What are the differences between setmaxrows(int) and setfetchsize(int)?
What is the meaning of “dirty read” in the database?
Why “no suitable driver” error occurs?
What class.forname will do while loading drivers of jdbc?
How many jdbc driver types are there?
Is uri the same as url?
How do we call a stored procedure from jdbc?
What is dburl?
In which ways is driver class is registered with drive manager?
How can you use preparedstatement in jdbc?
What is a java driver?
What is jdbc architecture in java?
Is jdbc a middleware?