Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 74
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: 2854
    
  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: 74
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Query about Connection interface