In the below diagram you drew an X to presumably show the deletion of the instance. However, I cannot find the part of the code where you manually deleted the instance from the memory. If you instead meant that Java would have deleted the instance automatically, then you should have drawn the X for other instances and not just this particular instance.
In the below diagram you drew an X to presumably show the deletion of the instance. However, I cannot find the part of the code where you manually deleted the instance from the memory. If you instead meant that Java would have deleted the instance automatically, then you should have drawn the X for other instances and not just this particular instance.