欢迎来到三一办公! | 帮助中心 三一办公31ppt.com(应用文档模板下载平台)
三一办公
全部分类
  • 办公文档>
  • PPT模板>
  • 建筑/施工/环境>
  • 毕业设计>
  • 工程图纸>
  • 教育教学>
  • 素材源码>
  • 生活休闲>
  • 临时分类>
  • ImageVerifierCode 换一换
    首页 三一办公 > 资源分类 > DOC文档下载  

    杭州天丽科技有限公司面试笔试题.doc

    • 资源ID:2996025       资源大小:131KB        全文页数:6页
    • 资源格式: DOC        下载积分:8金币
    快捷下载 游客一键下载
    会员登录下载
    三方登录下载: 微信开放平台登录 QQ登录  
    下载资源需要8金币
    邮箱/手机:
    温馨提示:
    用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP免费专享
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    杭州天丽科技有限公司面试笔试题.doc

    选择题 1: 1. What will happen when you attempt to compile and run the following code?    2.   3. class Base    4.   5.   6.   7. int i = 99;    8.   9. public void amethod()   10.   11.   12.   13.        System.out.println("Base.amethod()");   14.   15.         16.   17.      Base()   18.   19.   20.   21.      amethod();   22.   23.         24.   25.     26.   27. public class Derived extends Base   28.   29.   30.   31. int i = -1;   32.   33.           34.   35. public static void main(String argv)   36.   37.   38.   39.      Base b = new Derived();   40.   41.        System.out.println(b.i);   42.   43.        b.amethod();   44.   45.          46.   47.      public void amethod()   48.   49.   50.   51.        System.out.println("Derived.amethod()");   52.   53.          54.   55.     56.   57. Choices:  class Base int i = 99; public void amethod() System.out.println("Base.amethod()"); Base() amethod(); public class Derived extends Baseint i = -1; public static void main(String argv) Base b = new Derived(); System.out.println(b.i); b.amethod(); public void amethod() System.out.println("Derived.amethod()"); Choices:Error! Reference source not found.A.Derived.amethod() -1 Derived.amethod() Error! Reference source not found.B.Derived.amethod() 99 Error! Reference source not found.C.Compile time error Error! Reference source not found.D.Derived.amethod() 2:使用 JDBC 可以做到的是 Error! Reference source not found.A.把二进制代码传送到任何关系数据库中 Error! Reference source not found.B.把 Java 源代码传送到任何关系数据库中 Error! Reference source not found.C.把表单信息传送到任何关系数据库中 Error! Reference source not found.D.很容易地把 SQL 语句传送到任何关系数据库中 3: 1. String s=”Example String”;Which operation is not legal?  String s=”Example String”;Which operation is not legal?Error! Reference source not found.A.int i=s.length(); Error! Reference source not found.B.s3=”x”; Error! Reference source not found.C.String short_s=s.trim(); Error! Reference source not found.D.String t=”root”+s; 4: 1. public class X   2.   3.    public Object m()   4.   5.       Object o = new Float(3.14F);/line 3   6.   7.       Object  oa = new Object1;/line 4   8.   9.       oa0 = o;/line 5   10.   11.       o=null;/line 6   12.   13.       return oa0;/line 7   14.   15.         16.   17.   18. When is the Float object, created in line 3,eligible for garbage collection?  public class X public Object m() Object o = new Float(3.14F);/line 3 Object oa = new Object1;/line 4 oa0 = o;/line 5 o=null;/line 6 return oa0;/line 7 When is the Float object, created in line 3,eligible for garbage collection?Error! Reference source not found.A.just after line 5. Error! Reference source not found.B.just after line 6 Error! Reference source not found.C.just after line 7(that is,as the method returns) Error! Reference source not found.D.never in this method 5:Which fragments are not correct in Java source file? Error! Reference source not found.A.package testpackage; public class Test/do something. Error! Reference source not found.B.import java.io.*; package testpackage; public class Test/ do something. Error! Reference source not found.C.import java.io.*; class Person/ do something. public class Test/ do something. Error! Reference source not found.D.import java.io.*; import java.awt.*; public class Test/ do something. 6:在下述选项时,没有构成死循环的程序是 Error! Reference source not found.A.int i=100 while (1) i=i%100+1; if (i>100) break; Error! Reference source not found.B.for (;); Error! Reference source not found.C.int k=1000; do +k; while(k>=10000); Error! Reference source not found.D.int s=36; while (s);-s; 7:Which is the main() method return of a application? Error! Reference source not found.A.String Error! Reference source not found.B.byte Error! Reference source not found.C.char Error! Reference source not found.D.void 8:Use the operator “>>” and “>>>”. Which statement is true? Error! Reference source not found.A.1010 0000 0000 0000 0000 0000 0000 0000 >> 4 give 0000 1010 0000 0000 0000 0000 0000 0000 Error! Reference source not found.B.1010 0000 0000 0000 0000 0000 0000 0000 >> 4 give 1111 1010 0000 0000 0000 0000 0000 0000 Error! Reference source not found.C.1010 0000 0000 0000 0000 0000 0000 0000 >>> 4 give 0000 0000 0000 0000 0000 0000 0000 0000 Error! Reference source not found.D.1010 0000 0000 0000 0000 0000 0000 0000 >>> 4 give 1111 1010 0000 0000 0000 0000 0000 0000 9: 1. What will happen when you attempt to compile and run the following code?   2.   3. (Assume that the code is compiled and run with assertions enabled.)   4.   5. public class AssertTest   6.   7. public void methodA(int i)   8.   9. assert i >= 0 : methodB();   10.   11. System.out.println(i);   12.   13.   14.   15. public void methodB()     16.   17. System.out.println("The value must not be negative");   18.   19.   20.   21. public static void main(String args)   22.   23. AssertTest test = new AssertTest();   24.   25. test.methodA(-10);    26.   27.28.   29.   30.   What will happen when you attempt to compile and run the following code?(Assume that the code is compiled and run with assertions enabled.)public class AssertTestpublic void methodA(int i)assert i >= 0 : methodB();System.out.println(i);public void methodB() System.out.println("The value must not be negative");public static void main(String args)AssertTest test = new AssertTest();test.methodA(-10); Error! Reference source not found.A.it will print -10 Error! Reference source not found.B.it will result in AssertionError showing the message-“the value must not be negative”. Error! Reference source not found.C.the code will not compile. Error! Reference source not found.D.None of these. 10: 1. The following code is entire contents of a file called Example.java,causes precisely one error during compilation:   2.  class SubClass extends BaseClass   3.     4.  class BaseClass()   5.  String str;   6.  public BaseClass()   7.  System.out.println(“ok”);   8.  public BaseClass(String s)   9.  str=s;   10.  public class Example   11.  public void method()   12.  SubClass s=new SubClass(“hello”);   13.  BaseClass b=new BaseClass(“world”);   14.     15.     16.   17. Which line would be cause the error?   The following code is entire contents of a file called Example.java,causes precisely one error during compilation: class SubClass extends BaseClass class BaseClass() String str; public BaseClass() System.out.println(“ok”); public BaseClass(String s) str=s; public class Example public void method() SubClass s=new SubClass(“hello”); BaseClass b=new BaseClass(“world”); Which line would be cause the error? Error! Reference source not found.A.9 Error! Reference source not found.B.10 Error! Reference source not found.C.11 Error! Reference source not found.D.12 11:A class design requires that a member variable should be accessible only by same package, which modifer word should be used? Error! Reference source not found.A.protected Error! Reference source not found.B.public Error! Reference source not found.C.no modifer Error! Reference source not found.D.private 12:鉴于Java的特点,它最适合的计算环境是 Error! Reference source not found.A.并行计算环境 Error! Reference source not found.B.分布式计算环境 Error! Reference source not found.C.高强度计算环境 Error! Reference source not found.D.开放式计算环境 13:Math.round(-11.5)等於多少? Error! Reference source not found.A.-11 Error! Reference source not found.B.-12 Error! Reference source not found.C.-11.5 Error! Reference source not found.D.none 14: 1. Give the following method:   2.  public void method( )   3.  String a,b;   4.  a=new String(“hello world”);   5.  b=new String(“game over”);   6.  System.out.println(a+b+”ok”);   7.  a=null;   8.  a=b;   9.  System.out.println(a);   10.      11. In the absence of compiler optimization, which is the earliest point the object a refered is definitely elibile to be garbage collection.  Give the following method: public void method( ) String a,b; a=new String(“hello world”); b=new String(“game over”); System.out.println(a+b+”ok”); a=null; a=b; System.out.println(a); In the absence of compiler optimization, which is the earliest point the object a refered is definitely elibile to be garbage collection.Error! Reference source not found.A.before line 5 Error! Reference source not found.B.before line 6 Error! Reference source not found.C.before line 7 Error! Reference source not found.D.before line 9 简答题 15:确定模块的功能和模块的接口是在软件设计的那个队段完成的? 16:给出了从纽约出发和到达洛杉机的各种航班信息,写出找到一条从纽约到洛杉机的最短距离的航班组合的代码。 17:说出Servlet的生命周期,并说出Servlet和CGI的区别。 18: 1. abstract class Something    2.    private abstract String doSomething ();   3.   4. 分析上面的代码,正确还是错误。并说明原因。  abstract class Something private abstract String doSomething ();分析上面的代码,正确还是错误。并说明原因。19:Java中异常处理有什么优点? 20:char型变量中能不能存贮一个中文汉字?为什么? 21:struts2中的拦截器,你用过那些自带的拦截器,自己写过的吗? 22:用两个栈实现一个队列的功能? 23:将一个链表逆序. 24:如何启动时不需输入用户名与密码? 25:输入一个五位以内的正整数,(1)判断它是一个几位数;(2)请按序输出其各位数字;(3)逆序输出其各位数字。 如输入:56439,输出:5位数 5,6,4,3,9 9,3,4,6,5

    注意事项

    本文(杭州天丽科技有限公司面试笔试题.doc)为本站会员(文库蛋蛋多)主动上传,三一办公仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三一办公(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    备案号:宁ICP备20000045号-2

    经营许可证:宁B2-20210002

    宁公网安备 64010402000987号

    三一办公
    收起
    展开