최신 1z1-808 무료덤프 - Oracle Java SE 8 Programmer I

Given:

What is the result?

정답: C
Given the code format:

Which code fragment must be inserted at line 6 to enable the code to compile?

정답: C
Given the code fragment:
// insert code here
arr[0] = new int[3];
arr[0][0] = 1;
arr[0][1] = 2;
arr[0][2] = 3;
arr[1] = new int[4];
arr[1][0] = 10;
arr[1][1] = 20;
arr[1][2] = 30;
arr[1][3] = 40;
Which two statements, when inserted independently at line // insert code here, enable the code to compile?

정답: A,E
Given:

Which three lines will compile and output "right on!"?

정답: B,C,D
Given:
class Sports {
int num_players;
String name, ground_condition;
Sports(int np, String sname, String sground){
num_players = np;
name = sname;
ground_condition = sground;
}
}
class Cricket extends Sports {
int num_umpires;
int num_substitutes;
Which code fragment can be inserted at line //insert code here to enable the code to compile?

정답: B
설명: (DumpTOP 회원만 볼 수 있음)
Given:

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

정답: C
설명: (DumpTOP 회원만 볼 수 있음)
Given:
class MarksOutOfBoundsException extends IndexOutOfBoundsException { }
public class GradingProcess {
void verify(int marks) throws IndexOutOfBoundsException { if (marks >
100) {
throw new MarksOutOfBoundsException();
}
if (marks > 50) {
System.out.print("Pass");
} else {
System.out.print("Fail");
}
}
public static void main(String[] args) {
int marks = Integer.parseInt(args[2]);
try {
new GradingProcess().verify(marks);
} catch (Exception e) {
System.out.print(e.getClass());
}
}
}
And the command line invocation:
java GradingProcess 89 50 104
What is the result?

정답: B
Given the code fragment

Which code fragments, inserted independently, enable the code compile? (Choose 3)

정답: C,D,F
Given the code fragment:
public class ForTest {
public static void main(String[] args) {
int[] array = {1, 2, 3};
for ( foo ) {
}
}
Which three code fragments, when replaced individually for foo, enables the program to compile?

정답: C,D,E
Given the code fragment:

What is the result?

정답: C
설명: (DumpTOP 회원만 볼 수 있음)
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?

정답: A,C
설명: (DumpTOP 회원만 볼 수 있음)
The protected modifier on a Field declaration within a public class means that the field
______________.

정답: D
설명: (DumpTOP 회원만 볼 수 있음)
Given:
public class Test {
public static void main(String[] args) {
try {
String[] arr =new String[4];
arr[1] = "Unix";
arr[2] = "Linux";
arr[3] = "Solarios";
for (String var : arr) {
System.out.print(var + " ");
}
} catch(Exception e) {
System.out.print (e.getClass());
}
}
}
What is the result?

정답: B
설명: (DumpTOP 회원만 볼 수 있음)
Given:

What is the result?

정답: A
설명: (DumpTOP 회원만 볼 수 있음)
Given:
public class Test {
public static void main (String[] args) {
char[] arr = {97, '\t', 'e', '\n', 'i', '\t', 'o'};
for (char var: arr) {
System.out.print(var);
}
System.out.print("\nThe length is :" + arr.length);
}
}
What is the result?

정답: C
Given:
public class Equal {
public static void main(String[] args) {
String str1 = "Java";
String[] str2 = {"J","a","v","a"};
String str3 = "";
for (String str : str2) {
str3 = str3+str;
}
boolean b1 = (str1 == str3);
boolean b2 = (str1.equals(str3));
System.out.print(b1+", "+b2);
}
What is the result?

정답: A
설명: (DumpTOP 회원만 볼 수 있음)
Given:

What is the result?

정답: A
Given the code fragment:

Which option represents the state of the num array after successful completion of the outer loop?

정답: C
Given:

정답: C
Given:
public class FieldInit {
char c;
boolean b;
float f;
void printAll() {
System.out.println("c = " + c);
System.out.println("c = " + b);
System.out.println("c = " + f);
}
public static void main(String[] args) {
FieldInit f = new FieldInit();
f.printAll();
}
}
What is the result?

정답: B

우리와 연락하기

문의할 점이 있으시면 메일을 보내오세요. 12시간이내에 답장드리도록 하고 있습니다.

근무시간: ( UTC+9 ) 9:00-24:00
월요일~토요일

서포트: 바로 연락하기