Object Creation and Deletion

This is a sequence diagram example that shows object creation and deletion.

  1. creation: arrow with 'new' written above it – notice that an object created after the start of the scenario appears lower than the others
  2. deletion: an X at bottom of object's lifeline – Java doesn't explicitly delete objects; they fall out of scope and are garbage-collected
Import into your Project

Posted by: Howard Pruitt