Search code examples
c#javadependenciespreference

What is the difference between Circular Dependency and Circular Reference or the difference between Dependency and Reference?


As stated in the question, Could any one tell me about the difference between Circular Dependency and Circular Reference or the difference between Dependency and Reference?

I feel quite unclear and can't answer my friend's question when he asked me to distinguish these two definitions.

Thanks


Solution

  • A circular dependency would arise at build or compile time when dependencies are evaluated.

    A [chain of] circular reference[s], assuming that's what you're talking about, arises in a cyclic object graph, at runtime.

    Never heard of a 'circular preference'.