circular reference : Java Glossary


circular reference
If you have a class A that makes references to the methods of B and class B makes references to the methods of A, you have a circular reference.

You need to compile A before B and B before A so because the compiler needs to know the structure of a class before it can generate code to invoke its methods.

Javac gives you a way out of this. You compile both classes at once on the command line and in some unspecified amazing way, the compiler sorts the problem out for itself, e. g.

rem compiling a circular reference

This page is posted
on the web at:

Optional Replicator mirror
on local hard disk J:

Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

Your face IP:[]
You are visitor number