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 |
Is array synchronized in java?
Hi can u pls tell me what is the use of marker interface. Iknow what is marker interface but what ability will the object get by implementing this.
What does || mean in code?
What does super keyword do?
Does it matter in what order catch statements for filenotfoundexception and ioexception are written?
Is it possible to create Userdefined Unchecked Exception also?If Yes, give an example?
Distinguish method overloading and overriding
Why there are some null interface in java? What does it mean?
What happens if we override only equals?
What is a protected method?
Write a method that will remove given character from the string?
there are some duplicate values in ArrayList, how U'll get that array with out duplicate?