• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

RMI and Socket programming

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Can anybody explain to me this question:

Which of the following statements describes the advantages of RMI over Socket Programmimg?

A. RMI offers better speed than socket programming.

B. RMI is simpler to implement over socket programming.

C. You can pass tramsmit objects across RMI, but not across sockets.

D. RMI offers interactive communication, but sockets do not.

E. Unlike in sockets,no protocol design is required in RMI.


Answer B and E

And also tell me the difference b/w RMI and Socket programming.


Thanks In Advance

Arundhati
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This might be more technical than what's needed for the SCJA exam, but here's a good reference to skim for details (and you might want to skip to the end summary first): Programming Sockets and RMI: A Java Tutorial.
 
Arundhati Roy
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the study material...
 
Ranch Hand
Posts: 759
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

RMI is simpler to implement over socket programming.]RMI is simpler to implement over socket programming.

Because, RMI uses socket behind the scene.

Unlike in sockets,no protocol design is required in RMI.

RMI is higher level than socket. Additionaly RMI is slower because of that.


Jeffry Kristianto Yanuar
SCJP 5.0
SCJA
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what is the reason why socket is not interactive?
I think it can have no reply, ok?
 
Jeffry Kristianto Yanuar
Ranch Hand
Posts: 759
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

what is the reason why socket is not interactive?
I think it can have no reply, ok?



I think so, you have to create your own protocol to make socket interactive.


Jeffry Kristianto Yanuar
SCJP 5.0
SCJA
 
If you were a tree, what sort of tree would you be? This tiny ad is a poop beast.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic