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

what is collatration?

0 Answers  


Can we override a variable in java?

0 Answers  


What is the difference between iterator and enumeration ?

0 Answers  


What happens if we don’t override run method ?

0 Answers  


What is the method used to get the absolute value of a number?

2 Answers  


What are the basic concepts of OOPS in java?

0 Answers   Axtria, ITC Indian Tobacco Company,


What are the topics in core java?

0 Answers  


What is the purpose of file class?

0 Answers  


What is classname class in java?

0 Answers  


when should you use stringbuilder class in a program?

0 Answers  


Explain restrictions on using enum?

0 Answers  


Can you inherit from an abstract class java?

0 Answers  


Categories