I am going to develop a server. In this case I have to use socket programming. I am already developed some servers using javaServerSocket's. I heard about java.nio package from my friend. So I want to know what is the best way to develop my server using java.netServerSocket or java.nio.channels.ServerSocketChannel . Please give me your comments. I mean I need the advantages and disadvantages. Please help me.