Idea of Java serialization

What is Java serialization?

     The basic idea behind java serialization are
  • Save everything to a stream 
  • java.io defines two serialization streams.
    1. ObjectOutputStream for saving
    2. ObjectInputStream for restoring
  • Create the stream and tell it “save this object” using a standard API
Serialization allows us to read and write whole object from i/p stream and o/p stream respectively.

Why serialization?

  1. Persistence storing objects in files and databases
  2. Marshalling passing whole objects between VMs over the network


1 comments

  1. Best Casino Restaurants in Las Vegas, NV
    The Wynn 태백 출장마사지 buffet and its sister restaurant The Buffet at Wynn Las 공주 출장마사지 Vegas consist of a pancake station, 김제 출장마사지 an ice cream station, and a cafe. Location. 경주 출장안마 Las 파주 출장샵 Vegas. Casino.

    ReplyDelete

My Instagram