Why transient variables wont participate in serialization?
Answers were Sorted based on User's Feedback
Answer / krishna
transient variables allocates memory inside the object
| Is This Answer Correct ? | 4 Yes | 2 No |
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 |
What is java util hashmap?
Can a java program have 2 main methods?
what is difference between signed & unsigned char?
What are the advantages of user defined functions?
What is logical variable?
What is local variable and instance variable?
what is the difference between the methods sleep() and wait()? : Java thread
What is the abstraction?
what is the logic inside any default constuctor?
What are mutable classes?
What is exception in java?
Is a string literal?