Meaningless Drivel is fun!
The moose likes JDBC and Relational Databases and the fly likes JDBC 4.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "JDBC 4.1" Watch "JDBC 4.1" New topic

JDBC 4.1

Enkita mody
Ranch Hand

Joined: Aug 06, 2012
Posts: 333

C:\Documents and Settings\Ankita>java
------------------ Java Information ------------------
Java Version: 1.7.0_09
Java Vendor: Oracle Corporation
Java home: C:\Program Files\Java\jre7
Java classpath: C:\Program Files\Java\jdk1.7.0_09\db\lib\derby.jar;C:\Program F
OS name: Windows XP
OS architecture: x86
OS version: 5.1
Java user name: Ankita
Java user home: C:\Documents and Settings\Ankita
Java user dir: C:\Documents and Settings\Ankita Java Platform API Specification
java.specification.version: 1.7
java.runtime.version: 1.7.0_09-b05
--------- Derby Information --------
JRE - JDBC: Java SE 7 - JDBC 4.0
[C:\Program Files\Java\jdk1.7.0_09\db\lib\derby.jar] - (1181258)
[C:\Program Files\Java\jdk1.7.0_09\db\lib\derbytools.jar] - (1181258)


I have installed latest jdk 1.7.0_09 but it is showing JDBC 4.0, i had read JDBC 4.1 comes with jdk 7 ??

In JDBC 4.1, which is available in Java SE release 7 and later, you can use a try-with-resources statement to automatically close Connection, Statement, and ResultSet objects, regardless of whether an SQLException has been thrown. An automatic resource statement consists of a try statement and one or more declared resources. For example, you can modify CoffeesTables.viewTable so that its Statement object closes automatically, as follows:


I agree. Here's the link:
subject: JDBC 4.1
It's not a secret anymore!