University of Toronto - Fall 2000
Department of Computer Science

Week 1 - Memory Model

Memory Model Introduction

Program Example

Trace the following code with the memory model:

	class Book {
		private int numCopies;
	}

	public class Library {
		public static void main(String[] args) {
			Book b1;
			b1 = new Book();
		}
	}

Memory Model