[Free] 2019(Nov) EnsurePass Oracle 1z0-808 Dumps with VCE and PDF 1-10

Get Full Version of the Exam
http://www.EnsurePass.com/1z0-808.html

Question No.1

Which statement is true about the switch statement?

  1. It must contain the default section.

  2. The break statement, at the end of each case block, is mandatory.

  3. Its case label literals can be changed at runtime.

  4. Its expression must evaluate to a single value.

Correct Answer: D

Question No.2

Given the code fragment:

image

Which two modifications should you make so that the code compiles successfully?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

  5. Option E

Correct Answer: E

Question No.3

Which two are benefits of polymorphism?

  1. Faster code at runtime

  2. More efficient code at runtime

  3. More dynamic code at runtime

  4. More flexible and reusable code

  5. Code that is protected from extension by other classes

Correct Answer: BD

Question No.4

Given:

image

What is the result?

  1. nullRichardDonald

  2. RichardDonald

  3. Compilation fails.

  4. AnArrayIndexOutOfBoundsExceptionis thrown at runtime.

  5. ANullPointerExceptionis thrown at runtime.

Correct Answer: A

Question No.5

Given the following code for a Planet object:

image

What is the output?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

  5. Option E

Correct Answer: C

Question No.6

Given:

image

And given the code fragment: Book book1 = new EBook (); Book1.readBook();

Which option enables the code to compile?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: A

Question No.7

Given the code fragment:

image

What is the result?

  1. Compilation fails.

  2. Hi removed

  3. An UnsupportedOperationException is thrown at runtime.

  4. The program compiles, but it prints nothing.

Correct Answer: A

Question No.8

Given the code fragment:

image

Which code fragment, inserted at line n1, pints The Top element: 30?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

  5. Option E

Correct Answer: A

Question No.9

Given:

image

And given the commands: javac Test.java

java Test TRUE null What is the result?

  1. TRUE null

  2. true false

  3. false false

  4. true true

  5. AClassCastExceptionis thrown at runtime.

Correct Answer: D

Question No.10

Given the following main method:

image

What is the result? A. 5 4 3 2 1 0

B. 5 4 3 2 1

C. 4 2 1

  1. 5

  2. Nothing is printed

Correct Answer: D

Get Full Version of the Exam
1z0-808 Dumps
1z0-808 VCE and PDF

You must be logged in to post a comment.

Proudly powered by WordPress   Premium Style Theme by www.gopiplus.com