This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes difference between dependency and association Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "difference between dependency and association" Watch "difference between dependency and association" New topic
Author

difference between dependency and association

Dhiren Joshi
Ranch Hand

Joined: Dec 09, 2003
Posts: 463
What is the practical difference between these other then
depiction on the UML.
Say I have a class A which has a variable B . Is A an association to B.
Another way is I have a method in A which takes locally B .. Then is B a dependency for A.

Or is the dependency only what the definition says ..
If a change in B "may cause a change in A" then A dependent on B.. .
So in both the cases aboves are they assoications or depedencies ..

Can some one please clarify
Thanks
Dhiren
Dhiren Joshi
Ranch Hand

Joined: Dec 09, 2003
Posts: 463
Got the solution here
http://www.junlu.com/msg/44479.html
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1167
BTW, we spoke a little bit about it last week:

http://www.coderanch.com/t/152697/java-Architect-SCEA/certification/Association-vs-Dependency

Regards,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference between dependency and association
 
Similar Threads
Association and dependency
Dependency vs. association ?
Dependency vs. Association
Difference between Dependency and Association
association relation in class diagram