Question d’entretien chez Sparta Systems

how could a program in java/c run out of memory?