纠错
全专业资料、题库、学位、网课
最高直省2344元
上千+科次精品网课
买网课即送全真模考题库
五千+科次教材资料
电子资料满三件9折
五千+科次在线题库
全真呈现历年考试试题
1、[填空题]若程序中有语句: FileOutputStream out = new FileOutputStream("myFile.dat");,且文
件myFile.dat存在,则新写的内容__原有内容。
2、[填空题]若有定义Vector
用尽且系统为其第- .次自动增加后,能够容纳的元素个数是_
3、[填空题]若已有定义: class Lefthand extends Thread .....并创建了对象: Lefthand left = new
Lefthand0;,则启动线程left的语句是__
4、[主观题]以下程序创建一个窗口,窗口内放置一个面板,在面板中绘制两个同心圆,圆心在
(200, 200),绿色的大圆半径是100,红色的小圆半径是50。
5、[主观题]阅读以下程序,写出该程序的输出结果。
public class Test29 {
double d;
void change 1(int num) { num= 100; }
void change2(String str) { str- new String("false"); }
void change3(Test29 ex ){ ex.d=100; }
public static void main(String[] args) {
Test29 ex = new Test290;
inti= 15; ex.change1(i);
System.out.printn("i value is"+ i);
String s = new String( "true" ); ex.change2(s) ;
System.out.printIn("s value is"+ s);
ex.d = 15; ex.change3(ex) ;
System.out.printIn("Current ex.d is"+ ex.d);
}
}
Copyright © 2010 - 2023 湖南求实创新教育科技有限公司 All Right Reserved.
温馨提示:如您需要的资料本网暂时没有,请于工作日08:00-18:00,点击这里,联系客服及时补充资料。