- 讲师:刘萍萍 / 谢楠
- 课时:160h
- 价格 4580 元
特色双名师解密新课程高频考点,送国家电网教材讲义,助力一次通关
配套通关班送国网在线题库一套
百度广告
question 45
public class ref{
ref r = new ref();
}
int i=99;
system.out.println(i);
public void multi(ref r){
}
1) error at compile time
3) an output of 198
answer to question 45
--------------------------------------------------------------------------------
you need to create a class that will store unique object elements. you do not need to sort these elements but they must be unique.
1)set
3)map
answer to question 46
--------------------------------------------------------------------------------
which of the following will successfully create an instance of the vector class and add an element?
v[1]=99;
2) vector v=new vector();
3) vector v=new vector();
4 vector v=new vector(100);
answer to question 47
--------------------------------------------------------------------------------
you have created a simple frame and overridden the paint method as follows
g.drawstring('dolly',50,10);
what will be the result when you attempt to compile and run the program?
2) an error at compilation complaining at the signature of the paint method
4) the string 'dolly' will be shown at the bottom of the frame.
--------------------------------------------------------------------------------
what will be the result when you attempt to compile this program?
public static void main(string argv){
irand = math.random();
}
1) compile time error referring to a cast problem
3) a random number between 0 and 1
answer to question 49
责编:罗莉
上一篇:Java认证模拟题及分析3
下一篇:Java认证模拟题及分析5
课程专业名称 |
讲师 |
课时 |
查看课程 |
---|
课程专业名称 |
讲师 |
课时 |
查看课程 |
---|
点击加载更多评论>>