How can i work java with database ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can i work java with database ?

i have a project submitte with java so i need To know How am going To work with database link https://code.sololearn.com/WavX1iu7PNte/?ref=app

2nd Dec 2019, 7:51 AM
Micheal Alula
Micheal Alula - avatar
2 Answers
2nd Dec 2019, 7:58 AM
A͢J
A͢J - avatar
+ 1
There is some driver installation process to begin with. Once you do that then you have to extract that file in your current working directory or the project file you are working on. After that there are some 4 to 5 lines of code to establish communication between your data base and the java program. 1) Connection 2) Statement 3) Result set 4) Query to be executed.
2nd Dec 2019, 8:10 AM
Avinesh
Avinesh - avatar