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
6
u/sindisil Feb 07 '21
Others have answered your specific question (i.e., that Java Serialization is "lazy" because by using it you're accepting many potential problems in trade for easy implementation). The more important lesson is the fact that you're asking here, rather than having asked your interviewer for clarification (assuming it wasn't a written or automated interview).
A key part of growing as a developer (and as a person, IMO) is becoming comfortable with asking clarifying questions, without (or despite) worrying that people might think less of you for not understanding right away.
Good on you for asking here though. Many people would just either drop it or start parroting it without trying to understand the issue.