8Java复习题一.docVIP

  • 3
  • 0
  • 约2.84千字
  • 约 4页
  • 2017-08-23 发布于河南
  • 举报
Java复习题一 一、 选择(每题2分,共20分) 2.paint()方法使用哪种类型的参数? A Graphics B Graphics2D C String D Color 3.指出正确的表达式 A byte=128; B Boolean=null; C long l=0xfffL; D double=0.9239d; 4.指出下列程序运行的结果 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 );     Sytem.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 5.运行下列

文档评论(0)

1亿VIP精品文档

相关文档