下载此文档

Java 笔试题(1)答案.docx


文档分类:资格/认证考试 | 页数:约12页 举报非法文档有奖
1/12
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/12 下载此文档
文档列表 文档介绍
班级:_______________学号:______________姓名:___________Java笔试题(可多选)(ABD)Astart()   Brun()   Cexit()   DgetPriority()   BSerialable   (false)Stringstr1="hello";Stringstr2="he"+newString("llo");==str2);4. 下列说法正确的有(C),>,<,>=,<=,==运算?(true):(B)publicstaticvoidmain(Stringargs[]){Threadt=newThread(){publicvoidrun(){pong();}};();"ping");}staticvoidpong(){"pong");}Apingpong    Bpongping   Cpingpong和pongping都有可能   (AB)  BMySql  CIMS  (垃圾回收器)线程是否为守护线程?(true)?(false)(AC)+1<i的数吗?(存在)(B)Afloat  Bdouble  CFloat   (A )A  BufferedWriter B  FileInputStream  C  ObjectInputStream  (CD)Aprivate  Bprotected   Cfinal   (A)A是  =newArrayList(20);中的list扩充几次(A)A0  B1  C2   (AB)ADES BAES CDSA ,下面哪个选项的代码是错误的?(B)A)newBufferedWriter(newFileWriter(""));B)newBufferedReader(newFileInputStream(""));C)newGZIPOutputStream(newFileOutputStream(""));D)newObjectInputStream(newFileInputStream(""));(yes)lassNULL{publicstaticvoidhaha(){"haha");}publicstaticvoidmain(String[]args){((NULL)null).haha();}}()classHelloA{publicHelloA(){"HelloA");}{"I'mAclass");}static{"staticA");}}lassHelloBextendsHelloA{publicHelloB(){"HelloB");}{"I'mBclass");}static{"staticB");}publicstaticvoidmain(String[]args){ newHelloB(); }}StaticAStaticBHelloAI’mAclassHelpBI’mBClass21. getCustomerInfo()方法如下,try中可以捕获三种类型的异常,如果在该方法运行中产生了一个IOException,将会输出什么结果(A)publicvoidgetCustomerInfo(){try{//dosomethingthatmaycauseanException}catch(ex){"FileNotFoundException!");}catch(ex){"IOException!");}c

Java 笔试题(1)答案 来自淘豆网m.daumloan.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数12
  • 收藏数0 收藏
  • 顶次数0
  • 上传人一花一世
  • 文件大小19 KB
  • 时间2019-04-27