meena , why you want oter's code ? you don't want to create anything of your own. You learn servlets properly & rmi properly. then , go for developing any application. make small application of chat server. then , you can add funcationality to it. You create your own novel chat server , with sound support , video support ( api's from java ). on net you will get many sample chat server code. But , will you be having any satisfaction of doing good job. you learn theam , but create your own thing. I hope this is helpful.