Class Java Book

Java handles deallocation automatically.
And the automated deallocation is called garbage collection.
When no references to an object exist, and that object is eligible for garbage collection