java面试.docVIP

  • 7
  • 0
  • 约7.54千字
  • 约 9页
  • 2017-08-25 发布于河南
  • 举报
时代华纳Java笔试题 姓名: 应聘岗位: 日期: 一、 单项选择题 1.指出下列程序运行的结果 public class Example{   String str=new String(good);   char[]ch={a,b,c};   public static void main(String args[]){     Example ex=new Example();     ex.change(ex.str,ex.ch);     System.out.print(ex.str+ and );     System.out.print(ex.ch);   }   public void change(String str,char ch[]){     str=test ok;     ch[0]=g;   } } A、 good and abc B、 good and gbc C、test ok and abc D、 test ok and gbc 2.运行下列程序, 会产生什么结果 public class X extends Thread implements Runnable{  public void run(){   System.out.pr

文档评论(0)

1亿VIP精品文档

相关文档