File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes OO, Patterns, UML and Refactoring and the fly likes what are the difference between class  diagram and sequence diagram? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "what are the difference between class  diagram and sequence diagram?" Watch "what are the difference between class  diagram and sequence diagram?" New topic
Author

what are the difference between class diagram and sequence diagram?

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
what are the difference between class diagram and sequence diagram?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Wouldn't just looking at an example of both diagram types answer that question?!

When I do an image search for both I get a number of great examples. Do you really not see a difference?
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1372
Simple answer:
Class diagram -> static diagram
Sequence diagram -> Dynamic diagram
Vlad Varnica
Ranch Hand

Joined: Dec 28, 2002
Posts: 40
If you look in the Java code which has been generated from diagrams then you can notice that the class diagram usually model classes or packages while a sequence diagram is modeling methods.

Class diagram example: http://www.ejb3.org/class_diagram.png
Sequence diagram example : http://www.ibm.com/developerworks/rational/library/3101.html
AbderRahman Ali
Greenhorn

Joined: Mar 29, 2010
Posts: 4
jacob deiter wrote:what are the difference between class diagram and sequence diagram?


- Class diagram: It is a UML diagram that illustrates classes, interfaces, and their associations. And, it is used for static object modeling.
- Sequence diagram: It is a UML diagram that illustrates how objects (Instance of a class) interact with each other. And, it is used for dynamic object modeling.

Reference:

Applying UML and Patterns, Craig Larman

[jc: Corrected the name of Mr. Larman]


http://www.agilejavaoop.com
Share What You Know...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what are the difference between class diagram and sequence diagram?