An activity diagram and use case diagram are two types of diagrams used in modeling software requirements and design. A use case diagram graphically displays interactions between users and a system to achieve a goal or task. An activity diagram shows the workflow of steps or activities performed in a system.