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 |
What differences exist between iterator and listiterator?
Are there any tools available in java to create reports?
What is the purpose of using java.lang.class class?
What is the argument in java?
what value will be return by the read() method once it reaches the end-of-file? a. Throws EOException b. Return null c. Return -1 d. Read method return nothing, because it is void method
Why is static used?
Why java is secure? Explain.
Explain in detail about encapsulation with an example?
What is Major and importance difference between for and foreach loop ?
How do you declare an empty string?
what is synchronization
What does n mean in java?