JAVA题库:格林模拟试题三(上)(7)

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


question 22)

which of the following statements are true?

1) all of the variables in an interface are implicitly static
2) all of the variables in an interface are implicitly final
3) all of the methods in an interface are implicitly abstract
4) a method in an interface can access class level variables


question 23)

which of the following statements are true?

1) the string class is implemented as a char array, elements are addressed using the stringname[] convention
2) the operator is overloaded for concatenation for the string class
3) strings are a primitive type in java and the stringbuffer is used as the matching wrapper type
4) the size of a string can be retrieved using the length property

question 24)

which of the following statements are true?

1) a method in an interface must not have a body
2) a class may extend one other class plus at most one interface
3) a class may extends at most one other class plus implement many interfaces
4) an class accesses an interface via the keyword uses


question 25)

which of the following statements are true?

1) the following statement will produce a result of 1. system.out.println( -1 >>>2).
2) performing an unsigned left shift (<<<) on a negative number will always produce a negative number result
3) the following statement will produce a result of zero, system.out.println(1 >>1).
4) all the java integral types are signed numbers


question 26)

which of the following statements are true?

1) the elements in a java array can only be of primitive types, not objects
2) arrays elements are initialized to default values wherever they are created using the keword new
3) an array may be dynamically resized using the setsize method
4) you can find out the size of an array using the size method



相关文章


企业JavaBeansTM技术官方介绍
彻底明白Java的多线程-线程间的通信
JAVA中的覆盖与重载
JAVA题库:格林模拟试题三(下)(1)
JAVA题库:格林模拟试题三(上)(7)
J2EE建议的学习路线!
技巧心得:Java人才的未来
JAVA题库:格林模拟试题三(上)(8)
Java中的封装之我见
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛