what exactly happens when we execute
"Class.forname("Driver class name");"?Explain indetail

Answer Posted / shital

Class is a predefined class & foreName is a static method
to load the driver for connectivity

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I find whether a parameter exists in the request object?

499


Is jdbc database independent?

503


How can I get or redirect the log used by DriverManager and JDBC drivers?

520


What are the advantages of database connection pooling?

490


What are the different types of classes in the api component?

534






What is the most common example type 1 driver?

598


What is the advantage of namedparameterjdbctemplate?

510


Differentiate between stored procedure and functions?

622


What are the advantages of using preparedstatement over statement?

541


What is jdbc thin client in oracle?

493


What is jdbc driver for sql server?

538


What is difference between statement and preparedstatement in jdbc?

471


How to check jdbc driver version in websphere?

553


What are the steps involved in establishing a connection using jdbc in java?

523


Why do we need jdbc api?

479