单项选择题
Given the following expression about TextField which use a proportional pitch font.
TextField t = new TextField("they are good",40);
Which statement is true?()
A. The displayed string can use multiple fonts.
B. The maximum number of characters in a line will be 40.
C. The displayed width is exactly 40 characters.
D. The user can edit the characters.
点击查看答案&解析
相关考题
-
单项选择题
Given the following code: if (x>0) { System.out.println("first"); } else if (x>-3) { System.out.println("second"); } else { System.out.println("third"); } Which range of x value would print the string "second"?()
A. x > 0
B. x > -3
C. x <= -3
D. x <= 0 & x > -3 -
单项选择题
Whichisthereturntypeofthemethodmain()?
A. int
B. void
C. boolean
D. static -
多项选择题
1)classPerson{2)publicvoidprintValue(inti,intj){/*…*/}3)publicvoidprintValue(inti){/*...*/}4)}5)publicclassTeacherextendsPerson{6)publicvoidprintValue(){/*...*/}7)publicvoidprintValue(inti){/*...*/}8)publicstaticvoidmain(Stringargs[]){9)Persont=newTeacher();10)t.printValue(10);11)}12)}Whichmethodwillthestatementonline10call?()
A. on line 2
B. on line 3
C. on line 6
D. on line 7
