This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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


Win a copy of Elasticsearch in Action this week in the Big Data forum!
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: 76
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: 2867
    
  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: 76
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
 
Don't get me started about those stupid light bulbs.
 
subject: Query about Connection interface