A component diagram is primarily composed of UML components. In this context, however, the term component is slightly broader than the term commonly used in the software industry, as a UML component can be a source code component, a binary component, an executable component, or even a text file.
A component diagram provides a static view of the components and their relationships. Components on a component diagram may exist throughout development or may come into being after compilation, linking, and so on.
Stereotypes are used to distinguish between the different kinds of Java components on a component diagram:
A Java class file (.class file extension) is represented by specializing the standard UML stereotype ...