Java软件工程师综合面试笔试题

  一、选择题

  JAVA部分(总分30分:每题3分,多选/错选不得分,漏选得1分)

  1、下面哪些是short型的取值范围?

  A.-27—27-1

  B.0—216-1

  C.-215—215-1

  D.-231—231-1

  2、下面哪些是合法的标识符?

  A.$persons

  B.TwoUsers

  C.*point

  D.this

  E._endline

  3、哪些是将一个十六进制值赋值给一个long型变量?

  A.long number = 345L;

  B.long number = 0345;

  C.long number = 0345L;

  D.long number = 0x345L;

  4、下面的那些程序片断可能导致错误?

  A.String s = ”Gone with the wind”;

  String t = “good”;

  String k = s + t;

  B.String s = “Gone with the wind”;

  String t;

  t = s[3] +”one”;

  C.String s = “Gone with the wind”;

  String standard = s.yoUpperCase();

  D.String s =”home directory”;

  String t = s-“directory”;

  5、当Frame的大小被改变时Frame中的按扭的位置可能被改变时使用的哪一个布局管理器?

  A.BorderLayout

  B.FlowLayout

  C.CardLayout

  D.GridLayout

  6、哪些不是Java关键字?

  A.TRUE

  B.Sizeof

  C.Const

  D.Super

  E.Void

  

本文已影响6827
上一篇:应用系统开发工程师试题目 下一篇:经典c++面试题库

相关文章推荐

|||||