Answer from cs61c-as (Gerardo Bonilla 15311015) for Question 3 the Java equivalent to malloc is "new" but it does not have a "free" it instead has automatic garbage collection. In C automatic memory allocation and deallocation cannot be built because of the way C can cast pointers to and from pointers of compatible size.