Memory
Learn Memory (Programming Concepts, Programming Fundamentals) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Why Programs Need Memory Every variable, object, and piece of running code needs somewhere to "live" while the program executes - that place is the computer's memory (RAM). When you run a Java program, the JVM (Java Virtual Machine) sets aside memory regions to store method calls and the objects your program creates.