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

Explain the difference between arraylist and linkedlist in java?

0 Answers  


What are java packages? What's the significance of packages?

0 Answers  


In Inheritance if we are implementing Multi level inheritance and all class having same name of variable and now i want to access each class variable and how it is possible?

2 Answers  


JVM responsibility?

6 Answers   TCS,


What is appletviewer?

0 Answers  






Can an abstract class be a final class?

0 Answers  


What is method in research paper?

0 Answers  


I need to know about complete topic in java's collections i with an examples

1 Answers   TCS,


How to find the index of the largest number in an arraylist java?

0 Answers  


What is array in java?

0 Answers  


How destructors are defined in java?

0 Answers  


What is the difference between superclass and subclass?

0 Answers  


Categories