• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Revision help

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A short answer is wherever you use RMI, you can use a socket instead!!!
 
reply
    Bookmark Topic Watch Topic
  • New Topic