Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Revision help

 
Gary Goldsmith
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A short answer is wherever you use RMI, you can use a socket instead!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic