Answer from cs61c-aj (Kevin Li 15855812) for Question 3 Java equivalent to malloc is the keyword new. There is no equivalent to free in java because the memory management is automatic. Automatic memory management is a difficult task and is runned at various times in the program. Also it must have cooperation from both the compiler and operating system. Key pointers are neccessary and needs to be accessed. The C compiler would have to be rewritten in order for the automatic memory management to work.