Without overwhelming you with detail, the internal representation of a Java class has something called a constant pool that stores descriptors for classes and methods. These are symbolic links at first that are resolved on demand (ie at first access).
From the JVM spec, describing linking:
Linking is the process of taking a
binary form of a class or interface
type and combining it into the runtime
state of the Java virtual machine, so
that it can be executed. A class or
interface type is always loaded before
it is linked.
So, the actual type information for the referenced type is stored separately from the class in which you reference it.
If you're interested, here is a link to what the Class info looks like: http://java.sun.com/docs/books/jvms/second_edition/html/ClassFile.doc.html#1221