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
What is the default value of local and global variables?
What is compareto?
What is the purpose of using javap?
why java uses class level type casting ?
What is difference between arraylist and list in java?
Explain about procedural programming language or structured programming language and its features?
Where we write javascript code in html page?
How to create a custom exception?
Which is the best approach for creating thread ?
What are the two types of exceptions in java? Which are the differences between them?
How many types of array are there?
How many characters is 2 bytes?
Which collection is sorted in java?
How do you make an arraylist empty in java?
Which collection is best for sorting in java?