r/javahelp • u/Jyotikb25 • Feb 07 '21
Unsolved Serialisation Java8
Yesterday i took an interview where i was asked "why serialisation is said to b lazy" ?
I certainly could not answer this as i have never ever come across anything where the serialisation is considered lazy. After the interview i did a quick google and yet no ans.
Can anyone please help know the right ans for this with detailed explanation
java8
22
Upvotes
22
u/Robyt3 Feb 07 '21
Using Serializable is lazy, because it's a quick and dirty solution with many drawbacks.
https://github.com/HugoMatilla/Effective-JAVA-Summary#74-implement-serializable-judiciously