問題詳情

45.在 JAVA 中,下列哪一種變數宣告於方法的內部定義中,而在該方法執行結束後,變數代表的值也隨即消失?
(A)class 變數
(B) private 變數
(C) instance 變數
(D) local 變數

參考答案