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 |
Can we write class inside a class in java?
Explain about collection interface in java?
Add a value x to array from index l to r where 0 <= l <= r <= n-1
what is the difference between java and j2ee... is that can i work j2ee on net beans IDE 6.0
What is the difference between the synchronized() & static synchronized()?
Difference between JVM and JRE?
What is a memory leak in java?
In the below example, what will be the output?
Can we add two byte variables and assign the result to a byte variable ? b=b1+b2 where b,b1,b2 are byte types
What is collection class in java? List down its methods and interfaces.
How do generics work?
How do you execute a thread in java?