GeekInterview.com
Series: Subject:
Question: 211 of 271

What is a Presistent, Transient Object?

Asked by: Interview Candidate | Asked on: Jun 24th, 2005
Showing Answers 1 - 4 of 4 Answers
DEEPAK KUMAR MAHAPATRA(TCS KOCHI)

Answered On : Nov 22nd, 2006

TRANSIENT OBJECTS ARE TEMPERORY IN NATURE.OBJECT WHICH IS PERMENT IN NATURE TILL THE END OF THE PROGRAM OR REMAIN ACTIVE UNTIL THE ACCIDENTAL TERMINATION OF THE PROGRAM IS CALLED AS A PERSISTENT OBJECT.ON THE OTHERHAND REST NATURE OF THE OBJECT TYPE IS CALLED AND TRANSIENT OBJECT.

DEEPAK KUMAR MAHAPATRA (TCS KOCHI)

  
Login to rate this answer.
Mamta Chaplot

Answered On : May 21st, 2007

Transient object:They can't be serialized, its value is not persistent and stored in heap

Persistent Object:They can be serialized, its value is persistent as name implies and storedin memory.

  
Login to rate this answer.
pavanhiran

Answered On : Jan 26th, 2008

View all answers by pavanhiran

HERE IS ANSWER FOR YOUR QUESTION:

TRANSIENT OBJECTS ARE TEMPERORY IN NATURE. ALSO THEY CANT BE SERIALISED UNLIKE PERSISTENT OBJECTS. OBJECT WHICH IS PERMENT IN NATURE TILL THE END OF THE PROGRAM OR REMAIN ACTIVE UNTIL THE ACCIDENTAL TERMINATION OF THE PROGRAM IS CALLED AS A PERSISTENT OBJECT.ON THE OTHERHAND REST NATURE OF THE OBJECT TYPE IS CALLED AND TRANSIENT OBJECT.mmm

  
Login to rate this answer.

Transient object : 1> emporary Object
                             2>    Can not be serilised (ie. can not  save to secodary storage)

Persistent  Object : 1>     permanent Object (Persists its state )
                               2>     can be serilased (ie. bale save to secodary storage and can be
                                        use in future if needed)

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.