answersLogoWhite

0

a persitent object is the one that is stored permanently on the disk......whereas a transient object is stored temporarily on the ram....

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering

Why do persistent programming language allow transient object?

If you mark an instance variable as transient, you're telling the JVM to skip (ignore) this variable when you attempt to serialize the object containing it. Don't worry about Serialization just yet. That is a cool feature of java that we shall be seeing in greater detail in one of the subsequent chapters. For not it is enough to know that a transient variable will be ignored when the object is serialized.


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.


What is the difference between roughness and flatness?

The difference between roughness and flatness is that one, flatness, is the shape of an object. Roughness is the surface or texture of an object.


What is the difference between an inline object and a floating object?

A floating object can be moved independently of the surrounding text characters.


What difference between package class and object?

A package is a grouping of similar classes. A class is a blue print for making an object. An object is, well, an object.

Related Questions

Why do persistent programming language allow transient object?

If you mark an instance variable as transient, you're telling the JVM to skip (ignore) this variable when you attempt to serialize the object containing it. Don't worry about Serialization just yet. That is a cool feature of java that we shall be seeing in greater detail in one of the subsequent chapters. For not it is enough to know that a transient variable will be ignored when the object is serialized.


What is persistent object in c plus plus?

A persistent object is an object that retains its value between two different executions of the program that uses it. This means that some kind of disk file is used to store and load the object, using a method of the object, such as "serialize", to do so.


How can you ensure compatibility of persistent object formats between different class versions?

zxcvzcvzxcvzcv


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.


What is the difference between a form file object and a windows form object?

difference between a form file and a form.


difference between tripitaka and jataka?

[object Object]


What is the difference between force and tension?

[object Object]


What is the difference between geometric and stylized design?

[object Object]


What is the difference between 25 and -13?

38


what is the biggest difference between soot and diamond?

[object Object]


What is the difference between ''object'' and ''object''?

an object(n) is something you can hold to object (v) is to "not agree with"


Is there a difference between public liability and third party insurance?

difference between third party liability and public liability