NIKE interview question

They asked about Java and memory allocation