r/javahelp • • 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

21 comments sorted by

View all comments

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

4

u/[deleted] Feb 07 '21

This is the reason why I don't like to skip any questions, I don't know when I can miss something important for me. You just share the link with us that I didn't know people make summaries of books. I didn't know I can find that on Github too.

Thank you!

Do you know for some collection of book summaries or any other good links on GitHub?