This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Hi, i also want to know the answer What I understand from Serialization in context of static and transiet is:
If a class has static variables and this class's object goes under serialization,then this static variable do not get re-initialized when deserialized. But if a variable is declared Transient, it will be re-initialized to its default value when the object is deserialized.
But in the scenario, mentioned by indika, how this variable will behave when the object will be deserialized