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

亚信科技南方基地java笔试题.doc

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

亚信科技南方基地java笔试题 时限45min 一选择题(不定项选择) Java基础 1. 1) class Super { 2) public float getNum() {return 3.0f;} 3) } 4) 5) public class Sub extends Super { 6) 7) } which method,placed at line 6,will cause a compiler error? A.public float getNum(){return 4.0f;} B.public void getNum(){} C.public void getNum(double d){} D.public double getNum(float d){return 4.0d;} 2.参考答案:D 1)public class x{ 2) public object m(){ 3) object o=new float(3.14f); 4) object[] oa=new object[1]; 5) oa[0]=o; 6) o=null; 7) oa[0]=null; system.out.println(oa[0]); 9) } 10) } which line is the earliest point the object a refered is definitely elibile to be garbage collectioned? a.after line 4 b.after line 5 c.after line 6 d.after line 7 e.after line 9(that is,as the method returns) 3.what is reserved words in java? A.run B.default C.implement D.import 4. Integer i = new Integer (42); Long 1 = new Long (42); Double d = new Double (42.0); Which two expressions evaluate to True? (Choose Two) A.(i ==1) B.(i == d) C.(d == 1) D.(i.equals(d)) E.(d.equals(i)) F.(i.equals(42)) 5. class A implements Runnable { public int i = 1; public void run() { this.i = 10; } } public class Test { public static void main(String[] args) { A a = new A(); 11) new Thread(a).start(); int j = a.i; 13) } } what is the value of j at line 13? A.1 B.10 C.the value of j cannot be determined. D.An error at line 11 cause compilation to fail. 6. 1) public class SuperClass { 2) class SubClassA extends SuperClass{} 3) class SubClassB extends SuperClass{} 4) public void test(SubClassA foo){ 5) SuperClass bar = foo; 6) } 7) } which statement is true about the assignment in line 5? A.The assignment in line 5 is illegal B.The assignment in line 5 is legal, but throw a ClassCastException C.legal and will always executes without throw an Exception. web基础 9.ServletContext对象是由谁创建的? A.由Servlet容器负责创建,对于每个HTTP请求, Servlet容器都会创建一个ServletContext对象 B.由JavaWeb应用本身负责为自己创建一个ServletContext对象 C.由Servlet容器负责创建,对于每个JavaWeb应

文档评论(0)

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

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

版权声明书
用户编号:6111134150000003

1亿VIP精品文档

相关文档