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

来源:java认证发布时间:2012-11-12 12:47:49java认证视频

 

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

视频学习

我考网版权与免责声明

① 凡本网注明稿件来源为"原创"的所有文字、图片和音视频稿件,版权均属本网所有。任何媒体、网站或个人转载、链接转贴或以其他方式复制发表时必须注明"稿件来源:我考网",违者本网将依法追究责任;

② 本网部分稿件来源于网络,任何单位或个人认为我考网发布的内容可能涉嫌侵犯其合法权益,应该及时向我考网书面反馈,并提供身份证明、权属证明及详细侵权情况证明,我考网在收到上述法律文件后,将会尽快移除被控侵权内容。

最近更新

社区交流

考试问答