Josh Software Interview Question

How memory leak happens in java