File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI and Socket programming

 
Arundhati Roy
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the study material...
 
Jeffry Kristianto Yanuar
Ranch Hand
Posts: 759
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Tom KIK
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic