How can you make the connection using JDBC?
Submitted by: AdministratorIn establishing a connection is to have the appropriate driver connect to the DBMS. The following line of code illustrates the general idea:
E.g.
String url = “jdbc:odbc:Fred”;
Connection con = DriverManager.getConnection(url, “Fernanda”, “J8”);
Submitted by: Administrator
E.g.
String url = “jdbc:odbc:Fred”;
Connection con = DriverManager.getConnection(url, “Fernanda”, “J8”);
Submitted by: Administrator
Read Online JDBC Job Interview Questions And Answers
Top JDBC Questions
| ☺ | What is JDBC? |
| ☺ | How can you make the connection using JDBC? |
| ☺ | How to call a Stored Procedure from JDBC? |
| ☺ | What is JDBC Driver interface? |
| ☺ | What are the different types of Statements in JDBC? |
Top Java Programming Language Categories
| ☺ | Core Java Interview Questions. |
| ☺ | Hibernate Interview Questions. |
| ☺ | Advanced Java Interview Questions. |
| ☺ | IBM WebSphere Interview Questions. |
| ☺ | Spring Framework Interview Questions. |
