Oracle Java SE 7 Programmer I - 1Z1-803무료 덤프문제 풀어보기
Given:


정답: C
Given:


정답: C
Given: What is the result?


정답: C
설명: (Fast2test 회원만 볼 수 있음)
Given the code fragment:

What is the result?

What is the result?
정답: F
설명: (Fast2test 회원만 볼 수 있음)
Give: What is the result?


정답: B
Given:
public class Test {
public static void main(String[] args) {
int arr[] = new int[4];
arr[0] = 1;
arr[1] = 2;
arr[2] = 4;
arr[3] = 5;
int sum = 0;
try {
for (int pos = 0; pos <= 4; pos++) {
sum = sum + arr[pos];
}
} catch (Exception e) {
System.out.println("Invalid index");
}
System.out.println(sum); } }
What is the result?
public class Test {
public static void main(String[] args) {
int arr[] = new int[4];
arr[0] = 1;
arr[1] = 2;
arr[2] = 4;
arr[3] = 5;
int sum = 0;
try {
for (int pos = 0; pos <= 4; pos++) {
sum = sum + arr[pos];
}
} catch (Exception e) {
System.out.println("Invalid index");
}
System.out.println(sum); } }
What is the result?
정답: D
설명: (Fast2test 회원만 볼 수 있음)
Given:
public class Painting {
private String type;
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public static void main(String[] args) {
Painting obj1 = new Painting();
Painting obj2 = new Painting();
obj1.setType(null);
obj2.setType("Fresco");
System.out.print(obj1.getType() + " : " + obj2.getType());
}
}
What is the result?
public class Painting {
private String type;
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public static void main(String[] args) {
Painting obj1 = new Painting();
Painting obj2 = new Painting();
obj1.setType(null);
obj2.setType("Fresco");
System.out.print(obj1.getType() + " : " + obj2.getType());
}
}
What is the result?
정답: D
Give:

What value should replace kk in line x to cause jj = 5 to be output?

What value should replace kk in line x to cause jj = 5 to be output?
정답: B
설명: (Fast2test 회원만 볼 수 있음)
Which two may precede the word 'class' in a class declaration?
정답: B,C
설명: (Fast2test 회원만 볼 수 있음)
Given:

Which constructor initializes the variable x3?

Which constructor initializes the variable x3?
정답: C
Given the fragment:
String[][] arra = new String[3][];
arra[0] = new String[]{"rose", "lily"};
arra[1] = new String[]{"apple", "berry","cherry","grapes"};
arra[0] = new String[]{"beans", "carrot","potato"};
// insert code fragment here
Which code fragment when inserted at line '// insert code fragment here', enables the code to successfully change arra elements to uppercase?
String[][] arra = new String[3][];
arra[0] = new String[]{"rose", "lily"};
arra[1] = new String[]{"apple", "berry","cherry","grapes"};
arra[0] = new String[]{"beans", "carrot","potato"};
// insert code fragment here
Which code fragment when inserted at line '// insert code fragment here', enables the code to successfully change arra elements to uppercase?
정답: A
설명: (Fast2test 회원만 볼 수 있음)
Given the code fragment int var1 = -5; int var2 = var1--; int var3 = 0; if (var2 < 0) { var3 = var2++; } else { var3 = --var2; } System.out.println(var3);
What is the result?
What is the result?
정답: B