import java.net.*;
public class NetServ {
public static void main(String[] args) {
try {
ServerSocket s = new ServerSocket();
InetSocketAddress sa = new InetSocketAddress("127.0.0.1", 9999);
s.bind(sa);
s.close();
} catch {Exception e} {e.printStackTrace()}
}
}
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Unhandled exception type IOException
Unhandled exception type IOException
Unhandled exception type IOException
at NetServ.main(NetServ.java:11)