Answer from cs61c-fz (Sean Nyberg 16014383) for Question 3 The Java equivalent to malloc in C is "new". Java has no equivalent to free in C. It just deallocates storage when it is no longer needed (garbage collector). Someone can't build an automatic memory allocation / deallocation system for C, because in C, memory allocation is manual and memory must be explicitly allocated /freed by the programmer. It's difficult to determine automatically when a particular piece of storage is no longer needed and may be recycled for use in future allocations.