Answer Posted / debapriya patra
When ever we don't want to serialize a variable , we specify
that variable as transient.So that its not be serialized.And
when we de serialize the value we get the default value of
that variable.
And only we mentioned the variables as transient.
| Is This Answer Correct ? | 12 Yes | 5 No |
Post New Answer View All Answers
How thread scheduler schedule the task?
What is the difference between @before and @beforeclass annotation?
What is role of void keyword in declaring functions?
What are adapter classes?
Why singleton pattern is better than creating singleton class with static instance?
What is default constructors?
What is meant by local variable and instance variable?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
Is a boolean 1 bit?
Is it possible to override the main method?
What does arrays sort do in java?
When a byte datatype is used?
Explain polymorphism citing an example.
what is the difference between thread and runnable types? : Java thread
What is exception handling in java?