How does Java handle memory management? Explain the garbage collection process.
Java uses automatic garbage collection to manage memory. When objects are created, the JVM automatically allocates memory for them. Garbage collector identifies and deletes objects that are no longer reachable or in use, freeing up memory for new objects. This process helps in preventing memory leaks and ensures efficient memory utilization.