• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC 4.1

Enkita mody
Ranch Hand
Posts: 333
Firefox Browser Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
C:\Documents and Settings\Ankita>java org.apache.derby.tools.sysinfo
------------------ 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.specification.name: 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:

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic