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 do constructors use this() and super()?
What is difference between overloading and overriding in java?
What are autoboxing and unboxing? When does it occur?
Name the package that always imported by default?
Explain the difference between an Interface and an Abstract class?
How does class forname work in java?
Explain the difference between private, public, package and protected in java?
What is ascii format?
What do you mean by platform independence of Java?
Why wait and notify methods are declared in object class?
What are the names of interfaces that doesn't consists of method/s ?
Why null interfaces are used in Java?