not give me the same result when use write stream this variable inside object like this example at java
class
Test *implements*
Serializable
{
transient
final
int
m = 50;
public
static
void
main(String[] args) *throws*
Exception
{
Test input = *new*
Test();
// serialization
FileOutputStream fos = *new*
FileOutputStream("abc.txt");
ObjectOutputStream oos = *new*
ObjectOutputStream(fos);
oos.writeObject(input);
// de-serialization
FileInputStream fis = *new*
FileInputStream("abc.txt");
ObjectInputStream ois = *new*
ObjectInputStream(fis);
Test output = (Test)ois.readObject();
System.out.println("m = "
+ output.m);
}
}