What is transient variable

Showing Answers 1 - 8 of 8 Answers

vijaya

  • Sep 8th, 2006
 

A transient variable is a variable that may not be serialized

  Was this answer useful?  Yes

VJ

  • Sep 26th, 2006
 

Variable that cannot be persisted are transient varaibles

  Was this answer useful?  Yes

Hi,

This is srinivas from geektalk.

When we need not to be serialized an object then we go for object to be declared as transient. this is the real time situation we need to use transient.when we use DTO design pattern. in that DTO design pattern we serialized the DTO class. but in one situation in that DTO we use static variable then we declared as transient.

keeps smiling and mailing

bora_srinivasarao@yahoo.co.in
Hyderabad
cell:09989190898

"HELP EVER HURT NEVER"&"IMPOSSIBLE AS POSSIBLE"

Note:If any one want java materials like e-books,faq's send a mail to my id.if any doubts regarding java send a mail to my id, if possible i will send answers.if any one want how to install java softwares ,tomcat,weblogic,eclipse,jbuilder etc and how to use plz send amil or ask online also i will definitly tell.
see my profile by clickon below link:

http://in.geocities.com/bora_srinivasarao/MyHomepage.html

this is for java :

http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/DEA2eIX.html

  Was this answer useful?  Yes

Srilatha

  • Dec 5th, 2006
 

When an instance variable is declared as transient, then its value need not persistwhen an object is stored.

  Was this answer useful?  Yes

Give your answer:

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

 

Related Answered Questions

 

Related Open Questions