Tuesday, April 10, 2007

What is Dependency and how it maps into a Java class

A Dependency relationship means when a class consumes/uses methods or variables from other class(supplier).So a change to supplier class affects the consumer class as well.Here supplier is indepenedent of any changes being made to consumer classs.

In UML class diagrams, a dependency relationship connector appears as a dashed line with an open arrow that points from the consumer class to the supplier class. A dependency relationship means an "import" statement.


Anonymous said...

If watever stated here answers i mean are al cent percent ryt then m just loving this blog.
Watever ans i tried to check for correctness expect one o two were al ryt.!
awesome work dude.!!:)
Please thou correct the other ones.
This blog was of great help for me.!


Interview Questions On Java,Java EE Copyright © 2017. Reads: best tracker