JAVA OOP Basics - Connect to MySQL Database Class

preview_player
Показать описание
Here is the link to first version:
=====================================
SUBSCRIBE FOR MORE:
=====================================
Рекомендации по теме
Комментарии
Автор

Hi Sir!
How can you write an example of inserting data using objects ?

sarafuddin
Автор

I remember doing it like this when I wrote php code. 😋

omniversal
Автор

plz explain what are these
DRIVER = com.mysql.jdbc.Driver
DB_PATH =
actually im using offline database so which address should i set to DRIVER variable ??

shakeelhaider
Автор

I dont get the point of Class.forName() method at 1:10. If i omit this method/line it will still work like a charm so why do i need this and for what? I googled it on the net and it says it invokes a the Driver/Class to setup that maked a little bit sense until ran the programm without this method. It works without it so im confused.

You have a simple explanation why its used and why it still works witout it?

Thanks in advance

birkhansonkan