Latest Java Server Programming 2011


Latest Java Server Programming 2011

import java.net.*;

import static java.lang.System.*;
public class Server {
public static void main(String [] args) throws Exception {
SecurityManager sm = System.getSecurityManager();

Socket s = null;
ServerSocket ss = new ServerSocket(100);
System.out.println("Server ready");
out.println("Waiting for client request");
s = ss.accept();
System.out.println("Connection established");
}
}

Recommended Posts



Privacy Policy

All the Colleges, Schools, Universities, Top lists, Interview question paper, Programming, Tips, Tutorials and all other's just information purpose only. We are not responsible for any damages caused to you.