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 preparedstatement in java?

0 Answers  


Is oracle java 11 free?

0 Answers  


What is the program compilation process?

0 Answers  


Give me an example of array and linked list? Where they can be used?

0 Answers   Ericsson,


What is the static block?

0 Answers  






What is the final keyword in java?

0 Answers  


What are streams?

0 Answers  


What is the difference between panel and frame ?

7 Answers   HCL, IBM, Raim Techno Solutions,


What is Collection interface?

1 Answers   Zensar,


Will the compiler creates a default constructor if I have a parameterized constructor in the class?

0 Answers  


Distinguish method overloading and overriding

2 Answers   Tech Mahindra,


List the interfaces which extends collection interface?

0 Answers  


Categories