Why drivers like Oracle drivers does contain jdbc API classes ,interfaces etc? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why drivers like Oracle drivers does contain jdbc API classes ,interfaces etc?

In java database connectivity . Java uses jdbc API (which contains classes interfaces etc.) to communicate with DBMS. This jdbc itself uses drivers to communicate with dbms. So why this jdbc is not include in these drivers? Why it is placed separated in Java?

17th Aug 2019, 6:43 PM
parag sahu
parag sahu - avatar
1 Answer
0
I don't know if i understand your question in the correct way but i try to answer it: The jdbc driver is the connection from java to various drivers. But one driver can be used with other methods as well. Thats why you keep these two things apart. So you can freely use any driver with any connection to a programming language. So a driver-developer dont have to think about the usage of his driver as long as he creates an standard interface. It will be the same as for physikal driver. A hardware driver for your sound board will not include software like the vlc-player. The player will use the interface from the driver. So you can differ hardware, driver and software :)
17th Aug 2019, 8:40 PM
Tom Hammerbacher
Tom Hammerbacher - avatar