Code example for UnknownHostException

0
        } 
        if (i < 0 || i > 65535) {
            throw new IOException("incorrect port");
        } 
        if (s == null || s.equals("")) {
            throw new UnknownHostException("incorrect host");
        } 
         
        if (!flag) {
            socket = new Socket(s, i);
        } else { 
            socket = new Socket(s, i);
            socket.close();
        } 
        return socket;
    } 
     
    public String[] getDefaultCipherSuites() {
        return null; 
    }