How does Java handle memory management for objects?
// Example code snippet not required for this conceptual question
Through manual memory allocation and deallocation by the programmer
By using the delete keyword as in C++
delete
Using reference counting for each object
Through garbage collection