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.
|Java - Interview Questions and Answers|
|Ans. 1. Objects are serialized and not classes and hence Static variables are ignored.|
2. Transient is an explicit declaration to ignore the variable during serialization and hence transient instance variables are ignored too.
3. Base class instance variables if the base class hasn't been declared serializable.
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  serialization Asked in 1 Companies intermediate   frequent|
Try 1 Question(s) Test
|Can we declare static variables as transient ?|
|What is Serialization ? Why do we need it ?|
|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 are transient variables in java?|