Why transient variables wont participate in serialization?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is lambda programming?

721


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread

762


Is integer immutable in java?

751


What is the difference between preemptive scheduling and time slicing in java programming?

791


How would you format a date in java? I.e. In the ddmmyyy format?

1133


What is initial size of arraylist in java?

790


Will minecraft java be discontinued?

921


Can we make main() thread as daemon?

847


Explain the importance of throwable class and its methods?

793


What is the purpose of the system class in java?

778


What is the difference between double and float variables in java?

865


What are heterogeneous objects?

808


What is incompatible types in java?

803


What are inbuilt functions in java?

798


Describe string intern() methodology

817