They may have memory, but they function differently.
A computer uses two types of storage. A main store consisting of ROM and RAM, and backing stores which can be internal, eg hard disk, or external, eg a CD or USB Memory Unit.
Main store (or computer memory) is divided into Read Only Memory (ROM) and Random Access Memory (RAM).
ROM is memory that cannot be changed by a program or user. ROM keeps its memory even after the computer is turned off. For example, ROM stores the instructions for the computer to start up when it is turned on again. It can only be read, not written to.
RAM is a fast, temporary type of memory which programs, applications and data are stored. Here are some examples of what's stored in RAM: the operating system, applications and the graphical user interface (GUI).
If a computer loses power, all data stored in its RAM is lost.
The image shows what RAM looks like within a computer tower.
ROM is inside the computer tower but is more squared than RAM. ROM keeps data on it so it can turn on when you press the 'on' button.