@Rishi Srivastava
--------------------------------------------------------------------------------
Chapter 03 - Serialization with file
--------------------------------------------------------------------------------
It would be incredibly useful if an object could exist and hold its information even while the program wasn’t running.
Then, the next time we started the program, the object would be there, and it would have the same information or state it had the previous time the program was running.
Object serialization allows us to implement persistence. Persistence means that an object’s lifetime is not determined by whether a program is executing; the object lives in between invocations of the program. By taking a serializable object and writing it to disk (via file), then restoring that object when the program is re-invoked, we’re able to produce the effect of persistence.
Java Object ==| Stream of bytes ==| File
File ==| Deserialize from stream of bytes ==| Java O
0 views
966
311
3 days ago 00:41:05 0
Diy - Como costurar um maiô na máquina doméstica - aula 145
3 days ago 00:18:59 0
Мастер-класс, пошив ДЕТСКИХ КУПАЛЬНИКОВ + выкройки
4 days ago 00:00:00 0
12 Июля! Запуск Акции + Заработок в интернете! Доходы от 1000$ в месяц! Начало в 17:10 Москвы
4 days ago 00:33:00 0
Против кого же клялся, что не войдут в покой Его - Таиса Котова
4 days ago 01:20:24 0
Как избавиться от страданий/ Артур Пранава/ Путь Сердца #87
4 days ago 00:12:56 0
Катаклизмы за день ! Катаклизмы сегодня ! Новости сегодня ! События Дня ! #news
4 days ago 00:28:41 2
Эти 12 лекарств разрушают мозг — вы принимаете их каждый день!
4 days ago 00:19:35 3
Queen Live At Wembley Stadium 12/7/1986 - Brian May (Cams)