Get Full Version of the Exam
http://www.EnsurePass.com/1z0-808.html
Question No.101
Given the code fragment:
What is the result?
-
Option A
-
Option B
-
Option C
-
Option D
Correct Answer: C
Question No.102
Given the code from the Greeting.Java file:
Which set of commands prints Hello Duke in the console?
-
Option A
-
Option B
-
Option C
-
Option D
Correct Answer: C
Question No.103
Given the code fragment:
Which modification enables the code fragment to print TrueDone?
-
Replace line 5 With String opt= quot;truequot;;Replace line 7 with case quot;truequot;:
-
Replace line 5 with boolean opt = l;Replace line 7 with case 1=
-
At line 9, remove the break statement.
-
Remove the default section.
Correct Answer: A
Question No.104
Given the code fragments:
Which code fragment, when inserted at line n1, enables the code to print Hank?
-
checkAge (iList, ( ) -gt; p. get Age ( ) gt; 40);
-
checkAge(iList, Person p -gt; p.getAge( ) gt; 40);
-
checkAge (iList, p -gt; p.getAge ( ) gt; 40);
-
checkAge(iList, (Person p) -gt; { p.getAge() gt; 40; });
Correct Answer: C
Question No.105
Given:
How many MarkList instances are created in memory at runtime?
-
1
-
2
-
3
-
4
Correct Answer: A
Question No.106
Given the code fragment:
Which code fragment, when inserted at line 9, enables the code to print true?
-
String str2 = str1;
-
String str2 = new String (str1);
-
String str2 = sb1. toString ();
-
String str2 = quot;Dukequot;;
Correct Answer: B
Question No.107
Given the code fragment:
What is the result?
A.
1324
B.
2413
C.
3142
D.
4231
Correct Answer: C
Question No.108
Given the code fragment:
What is the result?
-
Execution terminates in the first catch statement, and caught a RuntimeException is printed to the console.
-
Execution terminates in the second catch statement, and caught an Exception is printed to the console.
-
A runtime error is thrown in the thread quot;mainquot;.
-
Execution completes normally, and Ready to use is printed to the console.
-
The code fails to compile because a throws keyword is required.
-
Correct Answer: C
Question No.109
Given the code fragment:
What is the result?
A. 1:2:3:4:5:
B. 1:2:3:
-
Compilation fails.
-
An ArrayoutofBoundsException is thrown at runtime.
Correct Answer: A
Question No.110
Given the following classes:
Which two options fail to compile when placed at line n1 of the main method?
-
employee.salary = 50_000;
-
director.salary = 80_000;
-
employee.budget = 200_000;
-
manager.budget = 1_000_000;
-
manager.stockOption = 500;
-
director.stockOptions = 1_000;
Correct Answer: CE
Get Full Version of the Exam
1z0-808 Dumps
1z0-808 VCE and PDF