Driver: getMajorVersion() : Driver « java.sql « Java by API






Driver: getMajorVersion()

 

import java.sql.Driver;
import java.sql.DriverManager;

public class Main {
  public static void main(String[] args) throws Exception {

    Driver myDriver = new org.hsqldb.jdbcDriver();
    DriverManager.registerDriver(myDriver);
    System.out.println(myDriver.acceptsURL("jdbc:mydriver://tutorial/"));
    System.out.println("Major Version: " +
            myDriver.getMajorVersion());
    System.out.println("Minor Version: " +
            myDriver.getMinorVersion());
    System.out.println("JDBC COMPLIANT driver? "
            + myDriver.jdbcCompliant());


  }
}

   
  








Related examples in the same category

1.Driver: getMinorVersion()
2.Driver: jdbcCompliant()