Persistent storage of data

Source: Internet
Author: User

For a program, like a computer in miniature, the program is input, output, data storage, execution (data processing). Among them, the storage of data in the program occupies a considerable proportion and role.

During the execution of the program, the data in the program can be divided into different data states, such as global, local, static, constant, etc., and the data types are divided into: shaping, character type, floating point type, string, etc., data is stored in memory queue, stack, staging area and peripheral (hard disk).

Once the program executes, the data in memory is lost, the program cannot continue to use the last data, and we cannot save the results of the execution.

Therefore, persistent storage of data becomes an important aspect of program writing.

Data persistence, we can save object-oriented data into a data file, or to store the data in a database, by storing the properties and values in the object, we can store the corresponding data information stored on the peripheral, we use the process, and then read from the peripheral.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.