C++ Programmer Question:

Tell me what do you mean by persistent and non persistent objects?

Tweet Share WhatsApp

Answer:

Persistent objects are the ones which we can be serialized and written to disk, or any other stream. So before stopping your application, you can serialize the object and on restart you can deserialize it. [ Drawing applications usually use serializations.]
Objects that can not be serialized are called non persistent objects. [ Usually database objects are not serialized because connection and session will not be existing when you restart the application. ]

Download C++ Programmer PDF Read All 59 C++ Programmer Questions
Previous QuestionNext Question
Tell me the types of inheritance supported in C++?What is an inline function in C++?