Driver d = new Driver();
Driver d; try { d = new Driver(); } catch (Exception e) { System.err.println("Cannot create Driver instance: "+e.getMessage()); System.exit(1); return; }
    public static void main(String[] args) {        Statement stat = null;        Driver d = new Driver();        if (args.length == 3) {            Connection conn = null;            try {                conn = DriverManager.getConnection(args[0], args[1], args[2]);                stat = conn.createStatement();            } catch (SQLException e) {                System.err.println("Connection to database failed, aborting.");                System.err.println(e.getMessage());                System.exit(1);            }        } else if (args.length != 0) {            System.err.println("Usage: java examples/VersionPrinter dburl user pass");            System.exit(1);            // Signal the compiler that code flow ends here.            return;        }                printHeading("PostGIS jdbc client code");        printVersionString("getFullVersion",Version.getFullVersion());        printHeading("PGJDBC Driver");        printVersionString("getVersion", Driver.getVersion());        printVersionString("getMajorVersion", d.getMajorVersion());        printVersionString("getMinorVersion", d.getMinorVersion());               if (stat == null) {            System.out.println("No online version available.");        }        printHeading("PostgreSQL Server");        printVersionString("version", stat);        printHeading("PostGIS Server");        for (int i = 0; i < GISVERSIONS.length; i++) {            printVersionString(GISVERSIONS[i], stat);        }    }