The output of above script will be. (run from another instance)
[root@centos65 ~]# java -cp .:mysql-connector-java-3.1.14-bin.jar FirstExample Connecting to database... Creating statement... ID: 1, Name: nilnandanGoodbye! [root@centos65 ~]# [root@centos65 ~]#
The output of above script will be. (run from another instance)
[root@centos65 ~]# java -cp .:mysql- connector- java-3. 1.14-bin. jar FirstExample
Connecting to database...
Creating statement...
ID: 1, Name: nilnandanGoodbye!
[root@centos65 ~]#
[root@centos65 ~]#