File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets 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: 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: 2833
    
  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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Query about Connection interface
 
Similar Threads
jdbc connectivity working fine in eclipse but not on deploying the same on tomcat by making war
java jdbc
connecting java application to JAVADB database
print data to textarea
DriverManager.getConnection hangs from actionPerformed