What does Class.forName return?

Answer Posted / prashant

Class.forNmae first loads the class in current classLoader so as to use that in future. Internally DriverManager gets the reference of the driver by using dynamic laoding (nothing is magical) this is is the reason when you say manager.GetConnection() it returns connection using the loaded driver

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to check jdbc driver version in websphere?

553


How to get the Database server details in java program?

578


What is ojdbc?

533


Explain how data flows from view to db and reverse

1639


What is the meaning of connection?

533






What is the use of callablestatement? Name the method, which is used to prepare a callablestatement.

477


How many locking systems are there in jdbc?

560


What do you mean by database connection pooling?

519


What is the execute method in java?

549


What are the basic exceptions in jdbc?

530


Is not bound in this context unable to find jdbc spring boot?

497


any one can explain about policy file rule? when i connect database with applet then ther is no compile time error but the run time error is occureed.i.e access is denied.policy file rule is related to this problem.

1852


If you are given a choice to implement the code to either insert a record or update if already exist, which approach will you follow ?

582


What is jsp and jdbc?

503


Give an example for execution of sql statement.

532