Here is the answer,
First, you need to establish a connection with the data source you want to use. A data source can be a DBMS, a legacy file system, or some other source of data with a corresponding JDBC driver. Typically, a JDBC application connects to a target data source using one of two classes:
For detail study of JDBC go to the link given below-
While making a JDBC connection we go through the following steps: Step 1 : Register the database driver by using : Class.forName (\" driver class 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: Execute the query: stmt.exceuteUpdate ();
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.