Garbage collection in languages like Java is an automatic process managed by the runtime environment. While you can suggest garbage collection using methods like System.gc(), you cannot force or guarantee when it will actually occur. The JVM decides based on memory needs and heuristics.