Oracle interview question

what happens to program's memory when it runs?