下面我們開始我們的重量級說明。虛擬函數引用。 下面是jvm規范中關于對象內存布局的說明,我沒有翻譯 我想你可以看明白,反正我現在看英文沒有問題, 假如不明白就查字典。 The Java Virtual Machine does not require any particular internal strUCture for objects. In Sun's current implementation of the Java Virtual Machine, a reference to a class instance is a pointer to a handle that is itself a pair of pointers: one to a table containing the methods of the object and a pointer to the Class object that rePResents the type of the object, and the other to the memory allocated from the Java heap for the object data.