Revision help

Hi I'm doing my revision for my exams and I am going over some past papers, I have come across one question and I would like some help answering. The questions is:

"Java provides application programming interfaces (APIs) for dealing with sockets, and also provides remote method invocation (RMI). Give an example of a situation where you would use the Java socket APIs, and a different example of a situation where you would use RMI. Justify your examples."

I can't find a good answer that would justify a good mark, could someone please help?

[564 byte] By [thomas228a] at [2007-11-27 4:00:34]
# 1

You would need to use a socket if you want to connect to a legacy application that isn't using RMI (e.g an application written in another language).

RMI is pretty simple and easy to use, so it might be a good choice if you want to build a small simple client / server application.

Kaj

kajbja at 2007-7-12 9:05:11 > top of Java-index,Java Essentials,Training...
# 2
Thank you very much kaj
thomas228a at 2007-7-12 9:05:11 > top of Java-index,Java Essentials,Training...
# 3
using socket u connect to the remote system(computer).using RMI u connect to the remote java application.
b.m.krajua at 2007-7-12 9:05:11 > top of Java-index,Java Essentials,Training...