1 / 7
文档名称:

java笔试题_-_50满分.docx

格式:docx   大小:49KB   页数:7
下载后只包含 1 个 DOCX 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

java笔试题_-_50满分.docx

上传人:gyzhluyin 2016/12/23 文件大小:49 KB

下载得到文件列表

java笔试题_-_50满分.docx

相关文档

文档介绍

文档介绍:海辉软件(国际)集团公司 1 -7 Java 笔试题姓名: 性别: 年龄: 联系电话: 毕业学校: 专业: 籍贯: 希望就业城市: 是否愿意长期出差: 熟悉的开发工具: 开始时间: 结束时间: (请在 30 分钟内完成,多选答对一个不计分,全对计分,每题 2 分,一共 50 分) 1. 一个函数定义的返回值是 float ,它不能在 return 语句中返回的值的类型是( D) A、 char B、 float C、 long D、 double 2. 有如下程序,请选择一个正确的结果( A) class Superclass {} class Subclass extends Superclass {} Superclass a= new Superclass(); Subclass b= new Subclass(); 选择一个正确的来解释下面的语句:b=a; A、编译非法 B、编译正确,但运行时可能非法 C、运行时正确 D、运行时非法 3. Which of the following collection classes from package are Thread safe? (Attention: Please choose two selection). Your answer is(AD ). A、 Vector B、 ArrayList C、 HashMap D、 Hashtable 4. 关于以下程序代码的说明正确的是( D) class HasStatic{ private static int x=100 ; public static void main(String args[ ]){ HasStatic hs1=new HasStatic( ); ++; HasStatic hs2=new HasStatic( ); ++; hs1=new HasStatic( ); ++; - -; ( “ x= ”+x); 海辉软件(国际)集团公司 2 -7 }} A、5行不能通过编译,因为引用了私有静态变量 B、10行不能通过编译,因为 x是私有静态变量 C、程序通过编译,输出结果为: x=103 D、程序通过编译,输出结果为: x=102 5. What is the result when pile and run the following code? Your answer is(A ). public class ThrowsDemo { static void throwMethod() { ("Inside throwMethod."); throw new essException("demo"); } public static void main(String args[]) { try { throwMethod(); } catch (essException e){ ("Caught "+ e); }}}A、 compile error B、 runtime error C、 compile essfully, nothing