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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 2771
    
  10

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
connecting java application to JAVADB database
DriverManager.getConnection hangs from actionPerformed
java jdbc
jdbc connectivity working fine in eclipse but not on deploying the same on tomcat by making war
print data to textarea