Hi All, If I have a class like this:
public class Name implements Serializable {
private final String firstName;
private final String lastName;
public Name(String firstName, String lastName) {
this.firstName = firstName;
this.lastName = lastName;
}
public String getFirstName() {
return firstName;
}
public String getLastName() {
return lastName;
}
}
Will its calculated serialVersionUID change if I add another method (and no additional fields)?
For example, adding the method:
public String getFullName() {
return firstName + " " + lastName;
}
Alternatively, is there a nice tool for figuring this out?