최신 1z1-808 무료덤프 - Oracle Java SE 8 Programmer I
Given:
class Mid {
public int findMid(int n1, int n2) {
return (n1 + n2) / 2;
}
}
public class Calc extends Mid {
public static void main(String[] args) {
int n1 = 22, n2 = 2;
// insert code here
System.out.print(n3);
}
}
Which two code fragments, when inserted at // insert code here, enable the code to compile and print 12?
class Mid {
public int findMid(int n1, int n2) {
return (n1 + n2) / 2;
}
}
public class Calc extends Mid {
public static void main(String[] args) {
int n1 = 22, n2 = 2;
// insert code here
System.out.print(n3);
}
}
Which two code fragments, when inserted at // insert code here, enable the code to compile and print 12?
정답: A,C
설명: (DumpTOP 회원만 볼 수 있음)
Which statement is/are true?
I. Default constructor only contains "super();" call.
II. We can't use any access modifier with a constructor.
III. A constructor should not have a return type.
I. Default constructor only contains "super();" call.
II. We can't use any access modifier with a constructor.
III. A constructor should not have a return type.
정답: B
설명: (DumpTOP 회원만 볼 수 있음)
Given the code fragment:

Which code fragment at line 10 prints Welcome 100?


Which code fragment at line 10 prints Welcome 100?

정답: C
Given:

Which two code fragments are valid?


Which two code fragments are valid?

정답: B,D
What is the result?
boolean log3 = ( 5.0 != 6.0) && ( 4 != 5);
boolean log4 = (4 != 4) || (4 == 4);
System.out.println("log3:"+ log3 + \nlog4" + log4);
boolean log3 = ( 5.0 != 6.0) && ( 4 != 5);
boolean log4 = (4 != 4) || (4 == 4);
System.out.println("log3:"+ log3 + \nlog4" + log4);
정답: C
Given the code fragment:
for (int ii = 0; ii < 3;ii++) {
int count = 0;
for (int jj = 3; jj > 0; jj--) {
if (ii == jj) {
++count;
break;
}
}
System.out.print(count);
continue;
}
What is the result?
for (int ii = 0; ii < 3;ii++) {
int count = 0;
for (int jj = 3; jj > 0; jj--) {
if (ii == jj) {
++count;
break;
}
}
System.out.print(count);
continue;
}
What is the result?
정답: D
Given the code fragment:
List colors = new ArrayList();
colors.add("green");
colors.add("red");
colors.add("blue");
colors.add("yellow");
colors.remove(2);
colors.add(3,"cyan");
System.out.print(colors);
What is the result?
List colors = new ArrayList();
colors.add("green");
colors.add("red");
colors.add("blue");
colors.add("yellow");
colors.remove(2);
colors.add(3,"cyan");
System.out.print(colors);
What is the result?
정답: A
설명: (DumpTOP 회원만 볼 수 있음)
Given:

What is the result?

What is the result?
정답: D
Given:

What is the result?

What is the result?
정답: D
설명: (DumpTOP 회원만 볼 수 있음)
Consider:
Integer number = Integer.valueOff 808.1");
Which is true about the above statement?
Integer number = Integer.valueOff 808.1");
Which is true about the above statement?
정답: D
설명: (DumpTOP 회원만 볼 수 있음)
Given:

Which code fragment, when inserted at line 7, enables the code print true?


Which code fragment, when inserted at line 7, enables the code print true?

정답: A
Given the code fragment:

What is the result?

What is the result?
정답: D
설명: (DumpTOP 회원만 볼 수 있음)
Given:

Which inserted at line 11, will provide the following output?
[21, 15, 11]

Which inserted at line 11, will provide the following output?
[21, 15, 11]
정답: C
설명: (DumpTOP 회원만 볼 수 있음)
What is the proper way to defined a method that take two int values and returns their sum as an int value?
정답: E
설명: (DumpTOP 회원만 볼 수 있음)