1:
给出下面的代码片断。。。下面的哪些陈述为错误的?
1) public void create() {
2) Vector myVect;
3) myVect = new Vector();
4) }
给出下面的代码片断。。。下面的哪些陈述为错误的?
1) public void create() {
2) Vector myVect;
3) myVect = new Vector();
4) }
。
。
。
2:public class Parent {
int change() {…}
}
class Child extends Parent {
}
Which methods can be added into class Child?
int change(){}
int chang(){}
int change(){}
3:
String s=”Example String”;Which operation is not legal?
String s=”Example String”;Which operation is not legal?
i=();
[3]=”x”;
short_s=();
t=”root”+s;
4:Which code fragments would correctly identify the number of arguments passed mand line to a Java application, exclude the name of the class that is being invoke.
count = ;
count = -1;
count=0; while(args[count]!=null) count++;
count=0;while (!(args[count].equals(“”))) count++;
5:软件生命周期的瀑布模型把软件项目分为3个阶段、8个子阶段,以下哪一个是正常的开发顺序?
、开发阶段、运行阶段
、开发阶段、编码阶段
、编码阶段、维护阶段
、编码阶段、测试阶段
6:
What will happen when you attempt pile and run the following code?
int Output = 10;
boolean b1 = false;
if((b1 == true) && ((Output += 10) == 20))
{
("We are equal " + Output);
}
else
{
("Not equal! " + Output);
}
Choices:
What will happen when you attempt pile and run the following code?
int Output = 10;
boolean b1 = false;
if((b1 == true) && ((Output += 10) == 20))
{
("We are equal " + Output);
}
else
{
("Not equal! " + Output);
}
Choices:
pilation error, attempting to perform parison on logical data type
pilation and output of "We are equal 10".
pilation and output of "
深圳市易思博信息技术有限公司面试题 来自淘豆网m.daumloan.com转载请标明出处.