Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can we use transient and static to modify the same variable? Does it make any difference in Object serialization?

0
Posted

Can we use transient and static to modify the same variable? Does it make any difference in Object serialization?

0

Yes, we can use transient and static to modify the same variable. It Does not make any difference in Object serialization. Since both transient and static variables are not serializable.See your exausting example at TestSerialization.

0

Yes, we can use transient and static to modify the same variable. It Does not make any difference in Object serialization.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.