Organizational Research By

Surprising Reserch Topic

Question:What are the steps in the JDBC connection?


While making a JDBC connection we go through the following steps :

asked Sep 13, 2013 in Java Interview Questions by anonymous
edited Sep 12, 2013
0 votes
25 views



Related Hot Questions

2 Answers

0 votes
Step 1 : Register the database driver by using :

Class.forName(\" driver classs for that specific database\" );

Step 2 : Now create a database connection using :

Connection con = DriverManager.getConnection(url,username,password);

Step 3: Now Create a query using :

Statement stmt = Connection.Statement(\"select * from TABLE NAME\");

Step 4 : Exceute the query :

stmt.exceuteUpdate();
answered Sep 13, 2013 by anonymous
edited Sep 12, 2013
0 votes
Step 1 : Register the database driver by using :

Class.forName(\" driver classs for that specific database\" );

Step 2 : Now create a database connection using :

Connection con = DriverManager.getConnection(url,username,password);

Step 3: Now Create a query using :

Statement stmt = Connection.Statement(\"select * from TABLE NAME\");

Step 4 : Exceute the query :

stmt.exceuteUpdate();
answered Sep 13, 2013 by anonymous
edited Sep 12, 2013

...