Java认证模考试题(九)
文章作者 100test 发表时间 2007:03:14 17:02:38
来源 100Test.Com百考试题网
Question: 44
Which of the following can be parts of the Java source file Calculation1.java?
A. public class Calculation1{//...}
B. import java.io.*.
C. package myPackage.
D. import java.awt.*.
E. static class Arg{//...}
F. class Calcu{//...}
G. public class Calculation2{//...}
Explanation:
The static can not be a modifier before the keyword class. A Java source file can have only one public class.
Correct Answer: A,B,C,D,F 44 of 60
Question: 45
Which one of the following containers must be added to another container?
A. Window
B. Frame
C. Dialog
D. Panel
Explanation:
The Window, Frame and Dialog are free-standing windows. But the Panel is contained within another container, or inside a Web browser s window.
Correct Answer: D 45 of 60