How can I create a memory leak in Java?
Asked 07 September, 2021
Viewed 2.2K times
  • 53
Votes

I just had an interview where I was asked to create a memory leak with Java.

Needless to say, I felt pretty dumb having no clue on how to even start creating one.

What would an example be?

30 Answer