JAVA题库:格林模拟试题三(下)(4)

文章作者 100test 发表时间 2007:03:14 17:37:54
来源 100Test.Com百考试题网


question 41)

you are creating an application that has a form with a text entry field used to enter a persons age. which of the following is appropriate for capturing this information.


1) use the text field of a textfield and parse the result using integer
2) use the getinteger method of the textfield
3) use the gettext method of a textbox and parse the result using the getint method of integer class
4) use the gettext method of a textfield and use the parseint method of the integer class


question 42)

given the following declaration


integer i=new integer(99).


how can you now set the value of i to 10?


1) i=10.
2) i.setvalue(10).
3) i.parseint(10).
4) none of the above


question 43)

which of the following statements are true

1) constructors cannot be overloaded
2) constructors cannot be overridden
3) a constructor can return a primitive or an object reference
4) constructor code executes from the current class up the hierarchy to the ancestor class


question 44)

given a reference called

t

to a class which extends thread, which of the following will cause it to give up cycles to allow another thread to execute.

1) t.yield().
2) thread.yield().
3) yield(100). //or some other suitable amount in milliseconds
4) yield(t).



相关文章


SCJP考点总结及SCJP考试要点分享[3]
SCJP考点总结及SCJP考试要点分享[4]
JAVA题库:格林模拟试题三(下)(8)
技巧心得:J2ME学习札记1
JAVA题库:格林模拟试题三(下)(4)
技巧心得:J2ME学习札记2
Java基础-创建Java程序中的线程池
SCJP考点总结及SCJP考试要点分享[2]
技巧心得:J2ME学习札记3
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛