answersLogoWhite

0


Best Answer

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

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between a persistent object and a transient object?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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 an object's speed and a object's velocity?

The difference between an object's speed and an object's velocity is that the object's speed is how fast it is going, and the object's velocity is how many units of speed the object has traveled.


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 direct object and object?

The direct object is the noun or pronoun that receives the action of the verb directly. An object, on the other hand, is a more general term that refers to any noun or pronoun that receives the action of a verb, including direct and indirect objects.


What is the difference between Estate Management and Business Management?

What are the difference between estate management and business management


What is the difference between nature miracles and healing miracles?

What is the difference between nature miracle and healing miracle


what is the biggest difference between soot and diamond?

[object Object]