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
How do I find ojdbc jar version?
What is the latest version of JDBC? What are the new features added in that?
How java can be connected to a database?
How can you know about drivers and database information ?
How will you perform truncation using JDBC?
Explain about column name and getter method?
How to check jdbc driver version in sql server?
What are 4 drivers available in JDBC? At what situation are four of the drivers used?
Does jdbc use ssl?
What is CLOB and BLOB datatypes in JDBC?
code to insert values/rows into oracle database from a java swing textfield when a button is pressed(using preparedstatements)
What are drivers available?
What is JDBC Batch Processing and what are it’s benefits?
How can we disable a constraint ?
How do you determine the sensitivity of the ResultSet object?