circular reference : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

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
javac.exe A.java B.java

This page is posted
on the web at:

http://mindprod.com/jgloss/circularreference.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\circularreference.html
logo
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.

IP:[65.110.21.43]
Your face IP:[54.82.13.49]
You are visitor number