I want to create a chat application which is client/server based. What will be the best? Using sockets or by using rmi?
PS: Is it possible to create chat application by using rmi?
RMI is a technology that works ontop of sockets. It's comparing apples to oranges. Sockets are the low-level stuff that handles the network communication, while RMI is a protocol that sits ontop of sockets in order to make it possible to invoke java methods on remote JVMs.