Answer from cs61c-cd (Charles Leung 15905350) for Question 3 In Java there is no need for a free function. Once some memory is no longer being used, it is automatically cleaned up and freed. The Java equivalent to malloc is new. C kind of has an automatic allocation/deallocation system that frees the memory when a function exits. I think it was called alloca? Because of differences in memory layouts and C implementations it is hard for C to have auto alloc and frees.