单项选择题

在Java语言中,下面是main()方法的部分代码:   
Frame f = new Frame("My Frame");  
f.setSize(100,100);   
为在屏幕显示f,应增加的代码是()。 

A.f.appear();
B.f.setForeground();
C.f.setVisible();
D.f.enable();


您可能感兴趣的试卷

你可能感兴趣的试题

2.单项选择题在Java语言中,使我们能够使用和更改字体来显示或键入文本的类是()。 

A.Java.awt.Font
B.Java.awt.Graphics.Font
C.Java.Graphics.Font
D.Java.Font

3.单项选择题下面语句使Applet接受参数的是()。    

A.在"start()"中调用getParameter()函数
B.在"init()"中调用getParameter()函数
C.在"main()"中调用getParameter()函数
D.在"paint()"中调用getParameter()函数

10.多项选择题下面哪段语法执行正确()

A. String s = "Gone with the wind";String t = " good ";String k = s + t;
B. String s = "Gone with the wind";String t; t = s[3] + "one";
C. String s = "Gone with the wind";String standard = s.toUpperCase();
D. String s = "home directory";String t = s - "directory";