You are on page 1of 2

UML Difference FAQs-1 1.Difference between Sequence diagram and Component diagram S.

No 1 Sequence diagram Component diagram

A sequence diagram is an A component diagram represents interaction diagram which how the components are wired represents how the processes together to form a software system. operate with each other and their order of operation. Sequence diagram keeps track of the objects and classes involved and the sequence of messages exchanged between the objects which are required to carry out the functionality. A component diagram has a higher level of abstraction than a Class Diagram - usually a component is implemented by one or more classes at runtime.

Sequence diagrams are not Component diagrams are used to intended for showing complex illustrate complex systems,they are procedural logic. building blocks so a component can eventually encompass a large portion of a system. A sequence diagram is a Component diagram is a Structural Behavioral Modeling Diagram. Modeling Diagram

2.Difference between Sequence diagram and Activity diagram S.No 1 Sequence diagram Activity diagram

Sequence diagram models the Activity Diagram mainly represent sequential logic, ordering of process flows captured in system. messages with respect to time. Sequence diagram mainly represent interaction between different objects.It is time ordered means exact interactions between objects is represented step by step. Activity diagrams are good at showing the general sequence of actions for several objects and use cases.

Sequence diagram describes Activity diagram is not dynamic the behavior of several objects diagram and it is used to see the in a single use case. workflow of the software. Sequence diagram is lifeline of Activity diagram high-level the the object and it is dynamic business processes, including data modeling. flow, or to model the logic of complex logic within a system. Sequence diagrams describe Activity diagrams illustrate the interactions among classes in dynamic nature of a system by

terms of an exchange of messages over time. Sequence diagrams show a detailed flow for a specific use case or even just part of a specific use case. They are almost self explanatory; they show the calls between the different objects in their sequence and can show, at a detailed level, different calls to different objects.

modeling the flow of control from activity to activity. An activity represents an operation on some class in the system that results in a change in the state of the system. Typically, activity diagrams are used to model workflow or business processes and internal operation.

3.Difference between Sequence diagram and Collaboration diagram S.No 1 Sequence diagram Collaboration diagram

In Sequence diagrams we can In Collaboration Diagram we can show Synchronous as well as only show Synchronous messages. Asynchronous messages. Sequence Diagram shows Collaboration diagram shows how overall flow of System event/s objects interacts with each other or in a given use case. how intercommunication b/w objects for a give use case It is difficult to fine the It is easy to detect the responsibilities of objects in responsibilities of objects in sequence diagram. collaboration diagram by just counting the number of arrows coming into the object. Sequence Diagrams are less Collaboration Diagram are much spatial. spatial.