View RSS Feed

Java Socket

Socket programming and networking examples in Java.

  1. RMI vs. Sockets and Object Serialization

    by , 04-25-2012 at 11:15 PM
    RMI or Remote Method Invocation is that Java system which is used to create the applications which are distributed object based. Given formula could be used to express the RMI that uses object serialization extensively.

    Remote method invocation = Sockets + Object Serialization + Some Utilities
    Compiler & RMI registry are utilities to generate the skeletons & stubs.

    If you are aware of RMI then you would definitely know that it is a very simple task to ...
  2. Overview of Object Serialization

    by , 04-25-2012 at 11:14 PM
    Object serialization is that mechanism which is considered useful in all programs which save objectís state to the file and then reads objects for reconstruction of the state of program, or using the sockets to send object at the network. Class serialization could be done very easily by using class implement interface. It is marker interface which has no methods to be implemented. This is used for informing the JVM (Java Virtual Machine) which one wants an object to get serialized. ...