[單項(xiàng)選擇題] 選擇正確的語句填在下列程序的橫線處。import java.awt.*;import java.awt.event.*;public class
2021-07-20
[單項(xiàng)選擇題] 選擇正確的語句填在下列程序的橫線處。import java.awt.*;import java.awt.event.*;public class ex30{ Frame f; public static void main(String[] args) { ex30 e = new ex30(); e. te st ( ); } public void test() { f = new Frame("ex30"); ______ f.paok(); f.setVisible(true); } class MyWindowListener extends WindowAdapter { public void windowClosing(WindowEvent e){ System.exit(1);} } }
A.a(chǎn)ddWindowListener(new MyWindowtistener());
B.a(chǎn)ddWindowListener(MyWindowListener());
C.a(chǎn)ddWindowAdapter(new MyWindowListener());
D.a(chǎn)ddWindowListener(new MyWindowListener());
正確答案:A
詞條內(nèi)容僅供參考,如果您需要解決具體問題
(尤其在法律、醫(yī)學(xué)等領(lǐng)域),建議您咨詢相關(guān)領(lǐng)域?qū)I(yè)人士。