Explain me what is a good usecase of calling System.gc()?

Submitted by: Muhammad
One may call System.gc() when profiling an application to search for possible memory leaks. All the profilers call this method just before taking a memory snapshot.
Submitted by: Muhammad

Read Online Java Software Engineer Job Interview Questions And Answers