JDBC Samples
There are JDBC samples included with the PSQL SDK. Please see the SAMPLES directory under your PSQL SDK installation directory. If you installed to the default location, this would be file_path\PSQL\SDK\SAMPLES\JDBC.
For default locations of PSQL files, see Where are the PSQL files installed? in Getting Started With PSQL.