试题详情
单项选择题在JAVA语言中,下列语句()可以画出一矩形框架,其距上边界为10,宽为30像素,高为40象素  

A、Graphics g=new Craphics();   g.drawRect(10,0,30,40);

B、Graphics g=new Craphics();   g.drawRect(0,10,30, 40);

C、Graphics g=new Craphics();   g.drawRect(30,40,10, 0);

D、Graphics g=new Craphics();   g.drawRect(30,40,0,10);

  • B
  • 关注下方微信公众号,在线模考后查看

热门试题