what is a transient variable?

Answers were Sorted based on User's Feedback



what is a transient variable?..

Answer / ravikiran

Transient variable is the one which cann't be serialized

Is This Answer Correct ?    19 Yes 3 No

what is a transient variable?..

Answer / firoz mahmud

A transient variable is a variable that may not
be serialized.

Is This Answer Correct ?    12 Yes 0 No

what is a transient variable?..

Answer / b.k.senthil kumar

It is java keyword. it comes under seralizable concept .if
we declare one vaiable as transient it can not be
seralizabled

Is This Answer Correct ?    10 Yes 1 No

what is a transient variable?..

Answer / debapriya patra

When ever we don't want to serialize a variable , we specify
that variable as transient.So that its not be serialized.And
when we de serialize the value we get the default value of
that variable.

And only we mentioned the variables as transient.

Is This Answer Correct ?    12 Yes 5 No

what is a transient variable?..

Answer / jack

A variable transfer one network to other nerwork,sometime
that varaible lost,at this time put transient before a
varaible

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Core Java Interview Questions

Differences between GridLayout and GridBagLayout?

1 Answers  


What is the difference between conversation & casting?

0 Answers  


Can extern variables be initialized?

0 Answers  


What we have to do, when we don't want to implement all methods of an interface?

5 Answers  


How we get some middle records in one table?

2 Answers   3i Infotech,






How garbage collection is done in java?

0 Answers  


What is double parsedouble in java?

0 Answers  


What is hash method?

1 Answers  


what is difference between validation.xml & validation rules.xml?

8 Answers   BirlaSoft,


Can we declare variables inside a method as Final Variables?

3 Answers  


What are the override methods in Object class?

2 Answers   Tech Mahindra, Wipro,


What is a parameter example?

0 Answers  


Categories