21 - Java Serialization with Java Objects as Collection - Code Demo

Publicado el: 27 noviembre 2022
en el canal de: Rishi Srivastava
65
1

‪@backstreetbrogrammer‬

--------------------------------------------------------------------------------
Chapter 08 - Serialization with Java Objects as Collection
--------------------------------------------------------------------------------
If we have a collection (List, Set, etc) of a serializable class objects, the whole collection can be serialized in one go by just calling writeObject() method from ObjectOutputStream class.

We need to ensure that every element in the collection is Serializable, otherwise the serialization will fail.

Similarly, while deserialization, the whole collection object can be read by calling readObject() method from ObjectInputStream class.


Java Serialization Playlist:    • Java Serialization  
Java Serialization Github: https://github.com/backstreetbrogramm...

Dynamic Programming Playlist:    • Dynamic Programming  
Dynamic Programming Github: https://github.com/backstreetbrogramm...

#java #javadevelopers #javaprogramming #javaserialization


En esta página del sitio puede ver el video en línea 21 - Java Serialization with Java Objects as Collection - Code Demo de Duración hora minuto segunda en buena calidad , que subió el usuario Rishi Srivastava 27 noviembre 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 65 veces y le gustó 1 a los espectadores. Disfruta viendo!