Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Interview Questions and Answers|
|Ans. The problem with serialized singleton class is that whenever we deserialize it, it will create a new instance of the class. To overcome this scenario all we need to do is to provide the implementation of readResolve() method.|
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  singleton  serialization Asked in 1 Companies|
|What is Serialization ? Why do we need it ?|
|Can we declare static variables as transient ?|
|Which elements of a class are ignored during serialization ?|
|Can we serialize static variables ?|
|What one should take care of, while serializing the object?|
|What is the use of Transient Keyword ?|
|Difference between Serialization and Deserialization ?|
|What is an Externalizable interface ?|
|Difference between serializable and externalizable interface ?|
|What is Externalizable interface?|