in Java does transient ignore variable or value?
java
Solution
Do something like:
public class Test1 implements Serializable {
private long longValue;
}
public class Test2 implements Serializable {
private long longValue;
private transient int intvalue;
}
now serialize an instance of each to disk, if the sizes are the same, then you know that transient variable is not serialized at all, otherwise....
Problem
Java course assignment: when a variable is put transient will serialisation ignore the variable or only the value of the variable. Test this. How do I test this?