Answers

Question and Answer:

  Home  Java Software Engineer

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

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.

 183 views

More Questions for you: