You don't need to delete objects in Java. They are deleted by the
Garbage Collector when they are no longer referenced. For example, if
you have an object inside the block or function scope, the object will be
removed when the scope finishes its execution.