aspose file tools*
The moose likes Beginning Java and the fly likes Query about Connection interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Query about Connection interface" Watch "Query about Connection interface" New topic
Author

Query about Connection interface

sparsh khandelwal
Ranch Hand

Joined: Dec 20, 2010
Posts: 70
hello everyone,
i try the following command

and found the output as given in snapshot,
i am new to jdbc, i am not able to understand the output of this command here


[Thumbnail for ScreenShot006.jpg]

Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2848
    
  11

You first print out your connection object, which just prints the reference used by the JVM to keep track of the object. Then you print the words Connected and Disconnected, so that's what you see in the console. What are you hoping to see?
sparsh khandelwal
Ranch Hand

Joined: Dec 20, 2010
Posts: 70
thanks for your reply,i don't know about this
connection object, which just prints the reference used by the JVM to keep track of the object

thank you
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Query about Connection interface