Why transient variables wont participate in serialization?

Answers were Sorted based on User's Feedback



Why transient variables wont participate in serialization?..

Answer / krishna

transient variables allocates memory inside the object

Is This Answer Correct ?    4 Yes 2 No

Why transient variables wont participate in serialization?..

Answer / shrinu nallavelli

transient means not to serialize.. whenever we declare a
variable as trancient it won't send the original value ,only
sends the default value..
purpose of this is to meet the security constraints...

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Core Java Interview Questions

How many bytes are a float?

0 Answers  


what is the output ? Math.floor(-2.1) a)2 b)-2 c)-3.0 d)0

4 Answers   Accenture,


Why are pointers not secure?

0 Answers  


What is data and its types?

0 Answers  


What is the use of math abs in java?

0 Answers  






What is java class writing rules?

1 Answers   Oracle,


What does the append?

0 Answers  


What do you mean by hashing?

0 Answers   Amazon,


Is it possible to use string in the switch case?

0 Answers  


How do you sort an array in java?

0 Answers  


Explain the selection sort algorithm?

0 Answers   Hexaware,


What is javac in java?

0 Answers  


Categories