Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Good evening.
You can solve your problem in different ways.
For example serialize your object/s to json/xml/yaml. As noted by colleague Dmitry Roo , see either jackson, gson. If we are talking about android, then there are others too.
Well, or for example, you can use protobuf
https://developers.google.com/protocol-buffers
Useful links:
https://www.baeldung.com/java-serialization-approaches
https://www.baeldung.com/java -serialization
Any serializer will do the job, as long as the objects are serializable.
serialization.
only the following conditions must be met.
The data must be self-sufficient,
some resources must be restored during deserialization. (e.g. database connection)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question