Hi friends it’s a tricky and interesting question. Any experienced Java developer would most properly respond with the answer “No”, saying that static members do not serialize. But believe me, it’s catchier than that !!!!
The correct answer is that static members serialize with the values that are defined for them at the class level. Meaning to say the value which will remain same for all instances of that class. For eg. if you have a student class which has a scool name as “St. Paul’s” defined at class level. Even if you change its value in the constructor to for e.g. say “St. Paul’s Senior Secondary School”, it will still serialize with school Name as “St. Paul’s” as it’s common for all the instances.