answersLogoWhite

0


Best Answer

By marking it transient.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you prevent a member variable from becoming serialized?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Does a criminal background prevent one from becoming a coal miner?

No. I know this because a family member of mine is dating a coal miner who was in prision before.


What are the qualifications for becoming a member of the house of representative?

what are the qualifications for becoming a member of the Texas house of represntatives


How do you get dasies on moshi monsters without becoming a member?

Without becoming a Moshi Member it's not possible to get these seeds.


What is mutable member?

A variable that may be modified.


How do you get answers for worksheets from edhelper if your not a member?

By becoming a member


In Java what does the keyword transient do?

It flags a field as a field that should not be considered part of an object's persistent state. It marks a member variable not to be serialized when it is persisted to streams of bytes. (Using Serialization) When an object is transferred through the network, the object needs to be 'serialized'. Serialization converts the object state to bytes. Those bytes are sent over the network and the object is recreated from those bytes in the target machine. Member variables marked by the java transient keyword are not transferred, they are lost on purpose. Ex: When transmitting user authentication information, password fields are made transient in the models so that, they are not transmitted through the network.


Is becoming a member in Avril Lavignes fan club free?

is becoming a member avril lavignes fan club free?


how do you become a fire ninja without being a member?

By becoming a member.


What is member variable in java?

We use the term member variable to refer to variables that are defined inside a method. Ex: public String getName(){ String x = "ttt"; ..... } In the method getName() x is a member variable


What do you need to get peppy?

you can get a peppy by becoming a member


Is becoming a member of Nike free?

No you have to pay


What is the static variable in the class in c?

A static member variable is local to the class rather than to an object of the class.