阿摩線上測驗 登入

申論題資訊

試卷:104年 - SCJP 1-50#41416
科目:OJCP(SCJP)
年份:104年
排序:0

申論題內容

第49題 Place code framgmets into position so the output is: The quantity is 420 Place here update(int quantity, int adjust){ Place here } public void callUpdate(){ int quant = 100; Place here System.out.println("The quantity is " + quant); } Code Fragments public int quantity = quantity + adjust; update(quant, 320); public void quant = update(quant, 320); public int update(int quantity, int adjust){ } public void callUpdate(){ int quant = 100; quant = update(quant, 320); System.out.println("The quantity is " + quant); }

詳解 (共 10 筆)

詳解 提供者:莊貴甄
1111111111111111111111111111111
詳解 提供者:蔡island
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
詳解 提供者:asiajason
update(int quantity, int adjust){ Place here } public void callUpdate(){ int quant = 100; Place here System.out.println(\"The quantity is \" + quant); } Code Frag
詳解 提供者:BlackFloat
public void callUpdate(){ int quant = 100; quant = update(quant, 320); System.out.println(\"The quantity is \" + quant); }
詳解 提供者:林宗霆
Place code framgmets into position so the output is: The quantity is 420 Place here update(int quantity, int adjust){ Place here } public void callUpdate(){ int quant = 100; Place here System.out.println(\"The quantity is \" + quant); } Code Fragments public int quantity = quantity + adjust; update(quant, 320); public void quant = update(quant, 320); public int update(int quantity, int adjust){ } public void callUpdate(){ int quant = 100; quant = update(quant, 320); System.out.println(\"The quantity is \" + quant); } 阿摩線上測驗: http://www.yamol.tw/testpaper.php?rid=34341078#ixzz4yH2d20BE
詳解 提供者:鄭岢庭
0000000000
詳解 提供者:戴彣娟
420100
詳解 提供者:星野光
The quantity is 320
詳解 提供者:蔡island
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
詳解 提供者:lovefutiger
NICE