I want to learn java connectivity with oracle.How?

I want to learn java connectivity with oracle.How?

You should have Driver for connectivity .You can download from net .

Do following steps:-

1) Load that driver in your class By help of Class.forNamr(Driver) 

2) Than get the connection Connection con = null; con = DriverManger.getDataBaseConnection(url,user,password).

3) Create statement help of connection Statement st = con.createStatement(\"Select * From tbl......\")

4) Execute Statement ResultSet rs = null; rs= st.execute();

5) Get you result from resultset .


By:
Date:2024-11-09 00:00:00

You should have Driver for connectivity .You can download from net .

Do following steps:-

1) Load that driver in your class By help of Class.forNamr(Driver) 

2) Than get the connection Connection con = null; con = DriverManger.getDataBaseConnection(url,user,password).

3) Create statement help of connection Statement st = con.createStatement(\"Select * From tbl......\")

4) Execute Statement ResultSet rs = null; rs= st.execute();

5) Get you result from resultset .


By:naveen
Date:2026-06-10 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related JDBC Subjective Links

JDBC Subjective interview questions and answers for experienced and fresher