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 |
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
What is an immutable object? How do you create one in java?
Which is best ide for java?
What is Java Shutdown Hook?
What is tochararray in java?
What is a condition in java?
State the significance of public, private, protected class?
Mention some interfaces implemented by linked list in java.
If I have 1000 objects and my requirement is to sort them quickly, then which collection would you recommend and why?
What is boolean false?
What is OOPs & Why?
What is immutability in java?