Answer from cs61c-ae (Zhibo Chen 15283355) for Question 3 The Java equivalent to malloc in C is new. There is no Java equivalent to free because it is performed automatically. It is nearly impossible to build an automatic memory allocation/deallocation system for C because C allows the programmer a great deal of freedom in programming with pointers. Java is able to have automatic memory management because it is much more strict in what the programmer can and cannot do.