2015桂电JAVA题库重点(含答案翻译).doc

  1. 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
2015桂电JAVA题库重点(含答案翻译).doc

1、 Which of the following is not a valid Java identifier? A. my Value B. $_AAA1 C. width D. m_x 2、 Sending a message to an object means that: A. You call a method of the object.你对象的调用一个方法。 B. You access a variable of the object. C. Both (a) and (b). D. Neither (a) nor (b). 3、 Which of the following is a Scanner method? A. nextLine. B. nextText. C. nextWord. D. readNext. 4、 Which is a correct static method call of Math class method sqrt? A. sqrt( 900 );. B. math.sqrt( 900 );. C. Math.sqrt( 900 );. D. Math math = new Math(); math.sqrt( 900 );. 5、 Declaring main as ________ allows the JVM to invoke main without creating an instance of the class. A. public. B. void. C. static. D. final. 6、 Consider the array: s[ 0 ] = 7 s[ 1 ] = 0 s[ 2 ] = -12 s[ 3 ] = 9 s[ 4 ] = 10 s[ 5 ] = 3 s[ 6 ] = 6 The value of s[s[6]-s[5]] is: A. 0. B. 3. C. 9. D. 10. 7、 What do the following statements do? double[] array; array = new double[ 14 ]; A. Create a double array containing 13 elements. B. Create a double array containing 14 elements.创建一个数组包含14个元素的两倍。 C. Create a double array containing 15 elements. D. Declare but do not create a double array. 8、 The _________ of a class are also called the public services or the public interface that the class provides to its clients. A. public constructors. B. public instance variables. C. public methods. D. All of the above. 9、 Using public set methods provides data integrity if: A. The instance variables are public.实例变量是公开的。 B. The instance variables are private. C. The methods perform validity checking.执行有效性检查的方法 D. Both b and c. 10、 Which of the following keywords allows a subclass to access a superclass method even when the subclass has overridden the superclass method? A. base. B. this. C. public. D. super. 11、 Which method changes the text the label displays? A. changeText. B. setText. C. changeLabel. D. setLabel. 12、 A(n) class cannot be instantiated.类不能被实例化。 A. final. B. concrete. C. abstract. 抽象的, D. polymorph

文档评论(0)

rewfdgd + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档