This is a sequence diagram example that shows object creation and deletion.
- creation: arrow with 'new' written above it – notice that an object created after the start of the scenario appears lower than the others
- deletion: an X at bottom of object's lifeline – Java doesn't explicitly delete objects; they fall out of scope and are garbage-collected