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

What is the Scope of Static Variable?

0 Answers   Verifone,


what is the Yield() method used in threads?

4 Answers   Accenture,


What are access specifiers available in java?

0 Answers  


What is default constructors?

0 Answers  


How can an exception be thrown manually by a programmer?

0 Answers  


What is the final class?

0 Answers  


Explain the purpose of garbage collection in Java?

0 Answers   BirlaSoft,


what are the states associated in the thread? : Java thread

0 Answers  


What classes of exceptions may be thrown by a throw statement?

0 Answers  


Can a abstract class be defined without any abstract methods?

0 Answers  


What is stop(), suspend(), resume() method?

3 Answers  


Is integer immutable in java?

0 Answers  


Categories