0% found this document useful (0 votes)
169 views18 pages

Java SE 8 Exam Prep Dumps

Uploaded by

Suvidha Reddy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
169 views18 pages

Java SE 8 Exam Prep Dumps

Uploaded by

Suvidha Reddy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Welcome to download the Newest 2passeasy 1z0-808 dumps

https://www.2passeasy.com/dumps/1z0-808/ (156 New Questions)

Exam Questions 1z0-808


Java SE 8 Programmer I

https://www.2passeasy.com/dumps/1z0-808/

Passing Certification Exams Made Easy visit - https://www.2PassEasy.com


Welcome to download the Newest 2passeasy 1z0-808 dumps
https://www.2passeasy.com/dumps/1z0-808/ (156 New Questions)

NEW QUESTION 1
Given:

What is the result?

A. A B C D
B. A C D
C. A C D D
D. A B D
E. A B D C

Answer: C

NEW QUESTION 2
Given the code fragment:

What is the result?

A. Answer = 0
B. Invalid calculation
C. Compilation fails only at line n1.
D. Compilation fails only at line n2.
E. Compilation fails at line n1 and line2.

Answer: C

Explanation:

NEW QUESTION 3
Given the code fragments:

And:

Passing Certification Exams Made Easy visit - https://www.2PassEasy.com


Welcome to download the Newest 2passeasy 1z0-808 dumps
https://www.2passeasy.com/dumps/1z0-808/ (156 New Questions)

Which statement is true?

A. After line 11, three objects are eligible for garbage collection.
B. After line 11, two objects are eligible for garbage collection.
C. After line 11, one object is eligible for garbage collection.
D. After line 11, none of the objects are eligible for garbage collection.

Answer: C

NEW QUESTION 4
Given the following classes:

Which two options fail to compile when placed at line n1 of the main method? (Choose two.)

A. employee.salary = 50_000;
B. director.salary = 80_000;
C. employee.budget = 200_000;
D. manager.budget = 1_000_000;
E. manager.stockOption = 500;
F. director.stockOptions = 1_000;

Answer: CE

NEW QUESTION 5
You are asked to develop a program for a shopping application, and you are given this information:
The application must contain the classes Toy, EduToy, and ConsToy. The Toy class is the superclass of the other two classes.
The int calculatePrice (Toy t) method calculates the price of a toy.
The void printToy (Toy t) method prints the details of a toy.
Which definition of the Toy class adds a valid layer of abstraction to the class hierarchy?

Passing Certification Exams Made Easy visit - https://www.2PassEasy.com


Welcome to download the Newest 2passeasy 1z0-808 dumps
https://www.2passeasy.com/dumps/1z0-808/ (156 New Questions)

A. Option A
B. Option B
C. Option C
D. Option D

Answer: A

NEW QUESTION 6
Given this code for a Planet object:

What is the output?

Passing Certification Exams Made Easy visit - https://www.2PassEasy.com


Welcome to download the Newest 2passeasy 1z0-808 dumps
https://www.2passeasy.com/dumps/1z0-808/ (156 New Questions)

A. Option A
B. Option B
C. Option C
D. Option D
E. Option E

Answer: C

NEW QUESTION 7
Given the code fragment:

What is the result?

A. Compilation fails.
B. 0 Found
C. 1 Found
D. 3 Found

Answer: A

NEW QUESTION 8
Which two are benefits of polymorphism? (Choose two.)

A. Faster code at runtime


B. More efficient code at runtime
C. More dynamic code at runtime
D. More flexible and reusable code
E. Code that is protected from extension by other classes

Answer: BD

NEW QUESTION 9
Which two class definitions fail to compile? (Choose two.)

Passing Certification Exams Made Easy visit - https://www.2PassEasy.com


Welcome to download the Newest 2passeasy 1z0-808 dumps
https://www.2passeasy.com/dumps/1z0-808/ (156 New Questions)

A. Option A
B. Option B
C. Option C
D. Option D
E. Option E

Answer: CD

NEW QUESTION 10
Which statement is true about the switch statement?

A. It must contain the default section.


B. The break statement, at the end of each case block, is mandatory.
C. Its case label literals can be changed at runtime.
D. Its expression must evaluate to a single value.

Answer: D

NEW QUESTION 10
Given:

Passing Certification Exams Made Easy visit - https://www.2PassEasy.com


Welcome to download the Newest 2passeasy 1z0-808 dumps
https://www.2passeasy.com/dumps/1z0-808/ (156 New Questions)

What is the result?

A. AB
B. AC
C. CC
D. A ClassCastException is thrown only at line n1.
E. A ClassCastException is thrown only at line n2.

Answer: B

NEW QUESTION 15
Given the code fragment:

What is the result?

A. 1324
B. 2313
C. 3142
D. 4231

Answer: D

NEW QUESTION 19
Given the code fragment:

What is the result?

A. 2 4
B. 0 2 4 6
C. 0 2 4
D. Compilation fails

Answer: C

Passing Certification Exams Made Easy visit - https://www.2PassEasy.com


Welcome to download the Newest 2passeasy 1z0-808 dumps
https://www.2passeasy.com/dumps/1z0-808/ (156 New Questions)

NEW QUESTION 20
Given the code from the Greeting.Java file:

Which set of commands prints Hello Duke in the console?

A. Option A
B. Option B
C. Option C
D. Option D

Answer: C

NEW QUESTION 24
Given:

What is the result?

Passing Certification Exams Made Easy visit - https://www.2PassEasy.com


Welcome to download the Newest 2passeasy 1z0-808 dumps
https://www.2passeasy.com/dumps/1z0-808/ (156 New Questions)

A. Option A
B. Option B
C. Option C
D. Option D

Answer: A

NEW QUESTION 27
Given:

And the code fragment:

Which code fragment, when inserted at line 14, enables the code to print Mike Found?

Passing Certification Exams Made Easy visit - https://www.2PassEasy.com


Welcome to download the Newest 2passeasy 1z0-808 dumps
https://www.2passeasy.com/dumps/1z0-808/ (156 New Questions)

A. Option A
B. Option B
C. Option C
D. Option D

Answer: A

NEW QUESTION 28
Given:

What is the result?

A. Compilation fails.
B. 11
C. 8
D. 9
E. 10

Answer: B

NEW QUESTION 32
Given:

And given the code fragment: Book book1 = new EBook(); book1.readBook();
Which option enables the code to compile?

Passing Certification Exams Made Easy visit - https://www.2PassEasy.com


Welcome to download the Newest 2passeasy 1z0-808 dumps
https://www.2passeasy.com/dumps/1z0-808/ (156 New Questions)

A. Option A
B. Option B
C. Option C
D. Option D

Answer: D

NEW QUESTION 34
Given:

What is the result?

A. 200.0 : 100.0
B. 400.0 : 200.0
C. 400.0 : 100.0
D. Compilation fails.

Answer: C

NEW QUESTION 37
Given the code fragment:

What is the result?

A. An exception is thrown at runtim


B. 2014-07-31T01:01:00
C. 2014-07-31
D. 2014-09-30T00:00:00

Answer: B

NEW QUESTION 39
Given:

Passing Certification Exams Made Easy visit - https://www.2PassEasy.com


Welcome to download the Newest 2passeasy 1z0-808 dumps
https://www.2passeasy.com/dumps/1z0-808/ (156 New Questions)

What is the result?

A. AB
B. AC
C. CC
D. A ClassCastException is thrown only at line n1.
E. A ClassCastException is thrown only at line n2.

Answer: D

NEW QUESTION 44
Which is true about the switch statement?

A. Its expression can evaluate to a collection of values.


B. The break statement, at the end of each case block, is optional.
C. Its case label literals can be changed at runtime.
D. It must contain the default section.

Answer: B

NEW QUESTION 46
Given the code fragment:

Which two modifications, made independently, enable the code to compile? (Choose two.)

A. Make the method at line n1 public.


B. Make the method at line n2 public.
C. Make the method at line n3 public.
D. Make the method at line n3 protected.
E. Make the method at line n4 public.

Answer: CD

NEW QUESTION 49
Given the code fragment:

Passing Certification Exams Made Easy visit - https://www.2PassEasy.com


Welcome to download the Newest 2passeasy 1z0-808 dumps
https://www.2passeasy.com/dumps/1z0-808/ (156 New Questions)

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

A. String str2 = str1;


B. String str2 = new String(str1);
C. String str2 = sb1. toString();
D. String str2 = "Duke";

Answer: A

NEW QUESTION 50
Given the code fragment:

What is the result?

A. An exception is thrown at runtime.


B. -1
C. 5
D. 10

Answer: A

NEW QUESTION 55
Which two code fragments cause a compilation error? (Choose two.)

A. float flt = 100.00F;


B. float flt = (float) 1_11.00;
C. Float flt = 100.00;
D. double y1 = 203.22;float flt = y1;
E. int y2 = 100;float flt = (float) y2 ;

Answer: AD

NEW QUESTION 60
Given:

What is the result?

A. 10 20 30 40
B. 0 0 30 40
C. Compilation fails.
D. An exception is thrown at runtime.

Answer: C

Passing Certification Exams Made Easy visit - https://www.2PassEasy.com


Welcome to download the Newest 2passeasy 1z0-808 dumps
https://www.2passeasy.com/dumps/1z0-808/ (156 New Questions)

NEW QUESTION 63
Given the code fragment:

What is the result?

A. 3
B. 4
C. -1
D. Compilation fails.

Answer: A

NEW QUESTION 64
Given:

What is the result?

A. Compilation fails.
B. 3 5
C. 0 0
D. 9 25

Answer: B

NEW QUESTION 67
Given the code fragment:

What is the result?

Passing Certification Exams Made Easy visit - https://www.2PassEasy.com


Welcome to download the Newest 2passeasy 1z0-808 dumps
https://www.2passeasy.com/dumps/1z0-808/ (156 New Questions)

A. Match 1
B. Match 2
C. No Match
D. A NullPointerException is thrown at runtime.

Answer: A

NEW QUESTION 70
Which three are advantages of the Java exception mechanism? (Choose three.)

A. Improves the program structure because the error handling code is separated from the normal program function
B. Provides a set of standard exceptions that covers all possible errors
C. Improves the program structure because the programmer can choose where to handle exceptions
D. Improves the program structure because exceptions must be handled in the method in which they occurred
E. Allows the creation of new exceptions that are customized to the particular program being created

Answer: ACE

NEW QUESTION 73
Given the code fragment:

Which modification enables the code to print 54321?

A. Replace line 6 with System.out.print (--x);


B. At line 7, insert x --;
C. Replace line 5 with while (is Available(--x)) {
D. Replace line 12 with return (x > 0) ? false : true;

Answer: C

NEW QUESTION 78
Given this segment of code:

Which two statements, if either were true, would make the code compile? (Choose two.)

A. MotorCycle is an interface that implements the Cycle class.


B. Cycle is an interface that is implemented by the MotorCycle class.
C. Cycle is an abstract superclass of MotorCycle.
D. Cycle and MotorCycle both extend the Transportation superclass.
E. Cycle and MotorCycle both implement the Transportation interface.
F. MotorCycle is a superclass of Cycle.

Answer: BC

NEW QUESTION 79
Given the code fragment:

What is the result?

A. AB
B. A element 0B element 1
C. A NullPointerException is thrown at runtime.
D. A 0B 1

Answer: C

Passing Certification Exams Made Easy visit - https://www.2PassEasy.com


Welcome to download the Newest 2passeasy 1z0-808 dumps
https://www.2passeasy.com/dumps/1z0-808/ (156 New Questions)

NEW QUESTION 83
Given the code fragment:

What is the result?

A. 1:2:3:4:5:
B. 1:2:3:
C. Compilation fails.
D. An ArrayOutOfBoundsException is thrown at runtime.

Answer: A

NEW QUESTION 84
Given the code fragment:

What is the result?

A. Option A
B. Option B
C. Option C
D. Option D
E. Option E

Answer: E

Explanation:

Passing Certification Exams Made Easy visit - https://www.2PassEasy.com


Welcome to download the Newest 2passeasy 1z0-808 dumps
https://www.2passeasy.com/dumps/1z0-808/ (156 New Questions)

NEW QUESTION 85
Which three statements are true about the structure of a Java class? (Choose three.)

A. A class cannot have the same name as its field.


B. A public class must have a main method.
C. A class can have final static methods.
D. A class can have overloaded private constructors.
E. Fields need to be initialized before use.
F. Methods and fields are optional components of a class.

Answer: BDE

NEW QUESTION 90
Given:

What is the result?

A. 10 : 30 : 6
B. 10 : 22 : 22
C. 10 : 22 : 20
D. 10 : 22 : 6

Answer: A

NEW QUESTION 91
......

Passing Certification Exams Made Easy visit - https://www.2PassEasy.com


Welcome to download the Newest 2passeasy 1z0-808 dumps
https://www.2passeasy.com/dumps/1z0-808/ (156 New Questions)

THANKS FOR TRYING THE DEMO OF OUR PRODUCT

Visit Our Site to Purchase the Full Set of Actual 1z0-808 Exam Questions With Answers.

We Also Provide Practice Exam Software That Simulates Real Exam Environment And Has Many Self-Assessment Features. Order the
1z0-808 Product From:

https://www.2passeasy.com/dumps/1z0-808/

Money Back Guarantee

1z0-808 Practice Exam Features:

* 1z0-808 Questions and Answers Updated Frequently

* 1z0-808 Practice Questions Verified by Expert Senior Certified Staff

* 1z0-808 Most Realistic Questions that Guarantee you a Pass on Your FirstTry

* 1z0-808 Practice Test Questions in Multiple Choice Formats and Updatesfor 1 Year

Passing Certification Exams Made Easy visit - https://www.2PassEasy.com


Powered by TCPDF (www.tcpdf.org)

You might also like