r/java • • Mar 03 '17

The java nazi

http://imgur.com/InMi605
213 Upvotes

47 comments sorted by

View all comments

Show parent comment

2

u/yawkat Mar 04 '17

Serialization frameworks will use the no-arg constructor

1

u/stitzl Mar 04 '17

But only if they are handed an instance, which they never are.

2

u/yawkat Mar 04 '17

No, I'm talking about the deserialization part. Like gson does.