Lecture 2 Objectives
At the end of today's class you should
KNOW:
- How to activate a method
- What the memory map looks like when a method has been activated
- How to write test cases in JUnit
- That an interface is the way to represent an itemization (union of classes) in Java
BE ABLE TO:
- Draw the memory map at various points in the execution of a Java program
- Write a set of test cases using JUnit
Sample Exam Question:
As in in-class exercise today we wrote test cases for a method likesSameFood
. Draw the memory map for an activation of the method likesSameFood
.