Examples of components for component diagrams are:
o Main program, i.e. the Java file that contains the root of the program (the function main())
o Package, that contains a number of classes
o Subprograms, modules that correspond to subroutine declarations
o Tasks, modules that represent packages with independent threads of control
An example of a deployment diagram
could be a client/server architecture. (See [Fowler, 2000a] for another example).