What is JDBC Connection? Explain steps to get Database connection in a simple java program.



What is JDBC Connection? Explain steps to get Database connection in a simple java program...

Answer / Gourab Kumar

"JDBC Connection represents an active channel for executing SQL statements against the database. To establish a connection in a simple Java program, follow these steps: 1. Load the JDBC driver, typically using Class.forName(). 2. Open a new connection using DriverManager.getConnection(), providing the URL, username, and password as parameters. 3. Use the Connection object to execute SQL statements or create other objects like Statements or PreparedStatements."n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JDBC Interview Questions

How can you make the connection using jdbc?

1 Answers  


Is the JDBC-ODBC Bridge multi-threaded?

2 Answers   Wipro,


How to connect multiple database in jdbc?

1 Answers  


all Java qts are imp ?

1 Answers   eBay,


Does jdbc use ssl?

1 Answers  


Explain the two tier and three tier architecture of jdbc.

1 Answers  


how many JDBC drivers ?name them?

6 Answers   CTS, Idea,


What are the basic exceptions in jdbc?

1 Answers  


What are statements in JAVA ?

1 Answers   CTS,


What is the use of jdbc?

1 Answers  


Explain about multiple implementations and drive manager?

1 Answers  


Which database is used for java?

1 Answers  


Categories