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