Is it possible to save data temporarily on runtime of java GUI application without having any database functionality?

Adnan Najeeb :

I want to make a library management system in which I want to store book name and book ID etc. But I am restricted not to use the database functionality and save that data only during the time of execution.

How could I go about this?

GhostCat salutes Monica C. :

Your options are straight forward:

  • keep that data in memory
  • use a temporary file in the file system
  • connect to some remote service where your app stores data (and then you are free to use whatever persistence mechanism you like to use)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=73236&siteId=1