aspose file tools*
The moose likes Beginning Java and the fly likes Revision help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Revision help" Watch "Revision help" New topic
Author

Revision help

Gary Goldsmith
Ranch Hand

Joined: Mar 06, 2007
Posts: 30
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?
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
I guess you would hardly find an existing answer for your revision/question/homework/etc.

My suggestion:
1) Search the Internet to find a socket example, then a RMI example.
2) Compile them, run them, understand them
3) Find a tutorial, if you don't understand.
4) Figure out what is the similarity and differences.
5) Finish your own revision/question/homework/etc.

During the process, you will learn a lot!!!
Thanks!
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
If you give me a fish, You feed me for the day If you teach me how to fish, you feed me for life.
Gary Goldsmith
Ranch Hand

Joined: Mar 06, 2007
Posts: 30
What I'm finding trouble finding the answer for is when would you use rmi over the socket api, and vise versa.
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
A short answer is wherever you use RMI, you can use a socket instead!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Revision help