Morgan Stanley interview question

How will you identify cyclic references in Java.