电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

东华软件笔试题

东华软件笔试题_第1页
1/6
东华软件笔试题_第2页
2/6
东华软件笔试题_第3页
3/6
东华软件笔试题北京东华合创数码科技股份有限公司笔试试卷(Java 语言部分)姓名: 联系方式: 1. which won’t cause a compiler warning or error?(多选)a) float f = 1.3;b) char c = ‘a’;c) byte b = 257;d) boolean b = null;e) int i = 10;2. 请选择下面这段代码的输出结果?int i = 0;switch (i) {case 0:System.out.println("zero");case 1:System.out.println("one");case 2:System.out.println("two");break;case 3: System.out.println("three");}1) zero2) zero,one3) zero,one,two4) zero,one,two,three3. public class Test{ private static int j=0; public static boolean methodB(int k){ j+=k; return true; } public static void methodA(int i){ boolean b; b=i>10&methodB(1); b=i>10&&methodB(2); } public static void main(String args){ methodA(0); 17) } } what is the value of j at line 17? 1)0 2)1 3)24)34. If we execute the code below with “java Test Red Green Blue”, what is the result? public class Test{ public static void main(String[] args){ String foo=args[1]; String bar=args[2]; String baz=args[3]; } } what is the value of baz? A. baz has value of "" B. baz has value of null C. baz has value of "Red" D. baz has value of "Blue" E. baz has value of "Green" F. the code does not compile G. the program throw an exception5. 请选择下面这段代码的输出结果?1)public class Test{ 2)public static void main(String[] args){ 3) class Foo{ 4) public int i=3; 5) } 6)Object o=(Object)new Foo(); 7) Foo foo=(Foo)o; 8)System.out.println(foo.i); 9) } 10) } A.compile error at line 6 B.compile error at line 7 C.compile error at line 8 D.print out 36. int index=1; String[] test=new String[3]; String foo=test[index]; what is the result of foo? A. "" B.null C.throw a Exception D.not compile7. 下面的五个选择中哪两个描述是正确的?(多选) A. static inner class requires a s...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

东华软件笔试题

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部