How can I make a field non-serializable in java?
java
Solution
Use keyword `transient`:
public transient String description;
Problem
Please, I need help with serializing data. I have a class called Foo which defines 3 attributes: ``` public int age; public String name; public String description; ``` How can I serialize this object, but without its description field? Thanks in advance!