• 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

what's the difference of RMI and socket

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,everyone!
Cloud somebody tell me the difference of the RMI and socket,and the defference of modify the Data class and extend the Data class,
thanks in advance!
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Net,
The RMI vs Serialized objects over sockets question comes up quite often. Try doing a search in this forum with "RMI Serialized" as your keywords. You will find plenty of really good explanations of what the issues are.
I think the extending Data vs modifying comes down to a few things:
  • is the original programmer likely to change the Data class? If so, you probably want to extend rather than modify, otherwise either your code changes or theirs will be lost.
  • do you have any extra functionalitly that you want to add? Given that we are told that the classes provided are complete with the exception of three methods, you might not want to add any extra functionality - your choice.
  • given that the code has to be understandable by a junior programmer, do you want them to be able to find all the code in one class, or should they have to look in the base class and the extended class? what is easier for them to understand?


  • Anyone care to add some more issues for the extendsion vs modification question?
    Regards, Andrew
     
    reply
      Bookmark Topic Watch Topic
    • New Topic