The Java compiler must know,while it is creating the program,the exact size and lifetime of all the data that is stored on the stack,because it must generate the code to move the stack pointer up and down.
英
美
- 創(chuàng )建程序時(shí),Java編譯器必須準確地知道堆棧內保存的所有數據的“長(cháng)度”以及“存在時(shí)間”。這是由于它必須生成相應的代碼,以便向上和向下移動(dòng)指針。