The Java Serialization API is designed to recognize only a private readObject method for deserialization purposes. Since it is public ,loses its special status in the serialization process.The transient fields are not restored to their intended values threfore price remains 0.0 leading to Cookie 0.0 2.99
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
SrinivasJasti
2 weeks, 1 day agoLangton
2 months, 1 week agoxplorerpj
6 months, 3 weeks agosupersquax
11 months, 2 weeks ago