java笔试单选题库大全.docVIP

  • 24
  • 0
  • 约2.63万字
  • 约 29页
  • 2017-11-17 发布于河南
  • 举报
java笔试单选题库大全

1.欲构造ArrayList类的一个实例,此类继承了List接口,下列哪个方法是正确的 ? B A、 ArrayList myList=new Object(); B、 List myList=new ArrayList(); C、 ArrayList myList=new List(); D、 List myList=new List(); 2.paint()方法使用哪种类型的参数? A A、 Graphics B、 Graphics2D C、 String D、 Color 3.指出正确的表达式 D A、 byte=128; //byte取值到127 B、 Boolean=null; C、 long l=0xfffL; D、 double=0.9239d; 4.指出下列程序运行的结果 B 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.

文档评论(0)

1亿VIP精品文档

相关文档