adplus-dvertising
frame-decoration

Question

What is the difference between activity diagram and sequence diagram in UML?

a.

Activity diagrams support parallelism while sequence diagrams don't.

b.

Activity diagrams model classes and their relationships while sequence diagrams model business processes and workflow.

c.

Sequence diagrams model the order in which messages are exchanged between instances of classes while activity diagrams model the physical layout of the system.

d.

Activity diagrams are used to model use cases while sequence diagrams are used to model state changes of an object over time.

Answer: (a).Activity diagrams support parallelism while sequence diagrams don't. Explanation:Activity diagrams in UML are used to model business processes, workflow, and procedural logic, and support parallelism. Sequence diagrams, on the other hand, are used to model the order in which messages are exchanged between instances of classes.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the difference between activity diagram and sequence diagram in UML?