Rough Draft Portfolio

Actually, when the program terminates, all memory gets cleaned up in C++ as well as in Java. The difference is what happens while the program is running. Java periodically pauses the program and goes through and frees up any memory that is no longer reachable from the program. C++ doesn't do this for you.