网站大量收购独家精品文档,联系QQ:2885784924

中兴面试测试题.doc

  1. 1、本文档共10页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
面试测试题 2 (一)、选择题(4 X 10): ( 1 ) Which of the following range of short is correct? C A. -27 ~ 27-1 B. 0 ~ 216-1 C. -215 ~ 215-1 D. -231 ~ 231-1 ( 2 ) Which declarations of identifiers are legal? ABE A. $persons B. TwoUsers C. *point D. this E. _endline ( 3 ) Given the following code: C 1 : public void modify() { 2: int i, j, k; 3: i = 100; 4: while ( i 0 ) { 5: j = i * 2; 6: System.out.println ( The value of j is + j ); 7: k = k + 1; 8: i--; 9: } 10: } Which line might cause an error during compilation? C A. line 4 B. line 6 C. line 7 D. line 8 ( 4) Which of the following answer is correct to express the value 8 in octal number? A A. 010 B. 0x10 C. 08 D. 0x8 ( 5 ) Which are not Java keywords?AB A. TRUE B. sizeof C. const D. super E. void ( 6 ) Given the following code: 1 : class Person { 2: public void printValue(int i, int j) {//... } 3: public void printValue(int i){//... } 4: } 5: public class Teacher extends Person { 6: public void printValue() {//... } 7: public void printValue(int i) {//...} 8: public static void main(String args[]){ 9: Person t = new Teacher(); 10: t.printValue(10); 11: } 12: } Which method will the statement on line 10 call? D A. on line 2 B. on line 3 C. on line 6 D. on line 7 ( 7 ) Given the following code: public void test() { try { oneMethod(); System.out.println(condition 1); } catch (ArrayIndexOutOfBoundsException e) { System.out.println(condition 2); } catch(Exception e) { System.out.println(condition 3); } finally { System.out.println(finally); } } Which will display if oneMethod run normally? AD A. condition 1 B. condition 2 C. condition 3 D. finally (8) Given the following code: public class Test { void printValue(int m){ do { System.out.println(The value is+m); } while( --m 10 ); } public static void main(String arg[]) { int i=10; Test t= new Test(); t.printValue(i); } } Which will be output? C A. The value is 8 B. The value is 9 C. The value is 10 D. The value is 11 (9) Given the following code: public class Person{ static int a

文档评论(0)

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

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

1亿VIP精品文档

相关文档