serializable interface
java
Solution
Mark those variables as `transient`.
e.g.
class A implements Serializable{
int a;
transient int b;
}
When an object of `A` is serialized, the transient field b will not be serialized.
Problem
I have a class that implements `java.io.Serializable` interface.So all the variables in that class is serilaizable. But i want to make some of the variables are should not serializable. Is it possible? thanks, Ravi