How to prevent a field from serialization ?

Answers were Sorted based on User's Feedback



How to prevent a field from serialization ?..

Answer / ranganathkini

To prevent a field from being serialized, we have to mark it
with the "transient" keyword

Is This Answer Correct ?    13 Yes 0 No

How to prevent a field from serialization ?..

Answer / ravikiran(aptech mumbai)

by declaring the varable transient

Is This Answer Correct ?    9 Yes 0 No

Post New Answer

More Core Java Interview Questions

How do you compare arrays in java?

0 Answers  


Explain constructors and types of constructors in java.

0 Answers  


What is the use of hashmap in java?

0 Answers  


What are variable arguments or varargs?

0 Answers  


Is 0 an even number?

0 Answers  






If set accepts only one argument then how can it compare two objects to avoid duplicates

5 Answers  


Compare overloading and overriding?

0 Answers  


Difference between Primary key and unique key?

4 Answers  


What is append in java?

0 Answers  


What is r * in math?

0 Answers  


How concurrent hashmap works?

0 Answers  


What is OOP's Terms with explanation?

0 Answers  


Categories