How to prevent a field from serialization ?
Answers were Sorted based on User's Feedback
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 |
Answer / ravikiran(aptech mumbai)
by declaring the varable transient
| Is This Answer Correct ? | 9 Yes | 0 No |
How many types of gc are there in java?
How java is platform independent?
41 Answers College School Exams Tests, Infosys, TCS,
What is the use of singleton class?
Explain the Propertie sof class?
how are methods defined?
What will happen if we cannot mention "finally" in Java Program ???
Is oracle charging for java?
What exactly is methodology?
How do you sort data in java?
what are variables in java
what are the high-level thread states? : Java thread
What is a singleton class? Give a practical example of its usage.