Transient fields in Java skip serialization. Use them for sensitive data (like passwords), temporary caches, or derived values (e.g., age from DOB). Upon deserialization, they revert to defaults (0/null). Example: transient String password;
. I think you can read more, with examples, here: https://www.codorbits.com/course/transient-in-java/