Answer Posted / 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 |
Post New Answer View All Answers
Why do we need data structure in java?
What is the importance of hashcode() and equals() methods?
What is data string?
What is the main use of java?
Can we extend immutable class?
Why main() method is public, static and void in java ?
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
What is difference between iterator access and index access?
Can we sort arraylist in java?
What do you mean by checked exceptions?
How transient variable is different from volatile variable?
What is the difference between yield() and sleep()?
Can a java program have 2 main methods?
What is the purpose of java?
extending thread class or implementing runnable interface. Which is better? : Java thread