import java.sql.*;


public class Test {

	public static void main(String[] args) throws Exception {
		Connection conn = DriverManager.getConnection("jdbc:postgresql://localhost:5433/postgres", System.getProperty("user"), "");
		PreparedStatement stmt = conn.prepareStatement("SELECT 1 WHERE ? IS NULL");
		stmt.setObject(1, null);
		ResultSet rs = stmt.executeQuery();
		conn.close();
	}

}