Steps to Create a JDBC Conncetion


  • 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();
jdbc program flow


Enter your email address to get our daily JOBS & INTERVIEW FAQ's Straight to your Inbox.

Make sure to activate your subscription by clicking on the activation link sent to your email