Serializable user

Report a typo

Here is a class User with two fields name and password.

Make this class serializable excluding the password field from the serialization.

Please, add a field for version to follow the best practices.

Write a program in Java 17
import java.io.Serializable;

class User {
String name;
String password;
}
___

Create a free account to access the full topic