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

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

Question No.41

Given:

image

What is the result?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: B

Question No.42

Given the code fragments:

image

Which modification enables the code to compile?

  1. Replace line n1 with:import p1.A;Replace line n2 with:import p1.A;import p1.p2.B;

  2. Replace line n1 with:import p1;Replace line n2 with:import p1;import p1.p2;

  3. Replace line n1 with:import p1.A;Replace line n2 with:import p1.*;

  4. Replace line n1 with:import p1.*;Replace line n2 with:import p1.p2.*;

Correct Answer: D

Question No.43

Which code fragment causes a compilation error?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

  5. Option E

Correct Answer: D

Question No.44

Given the code fragment:

image

Which three code fragments are valid at line n1?

  1. public static void insertToy() {/* code goes here */}

  2. public abstract Toy getToy() {return new Toy();}

  3. public void printToy();

  4. public int calculatePrice() {return price;}

  5. public abstract int computeDiscount();

Correct Answer: CDE

Question No.45

Given:

image

What is the result?

  1. c=b = falsef = 0.0

  2. c= nullb = truef = 0.0

  3. c=0b = falsef = 0.0f

  4. c= nullb = falsef = 0.0F

Correct Answer: C

Question No.46

Given:

image

What is the result?

  1. True false

  2. True null

  3. Compilation fails

  4. A NullPointerException is thrown at runtime

Correct Answer: A

Question No.47

Given:

image

What is the result?

  1. BaseDerivedA

  2. BaseDerivedB

  3. DerivedBDerivedB

  4. DerivedBDerivedA

  5. A classcast Exception is thrown at runtime.

Correct Answer: C

Question No.48

Which three are advantages of the Java exception mechanism?

  1. Improves the program structure because the error handling code is separated from the normal program function

  2. Provides a set of standard exceptions that covers all the possible errors

  3. Improves the program structure because the programmer can choose where to handle exceptions

  4. Improves the program structure because exceptions must be handled in the method in which they occurred

  5. Allows the creation of new exceptions that are tailored to the particular program being created

Correct Answer: ACD

Question No.49

Which statement will empty the contents of a StringBuilder variable named sb?

  1. sb. deleteAll ();

  2. sb. delete (0, sb. size () );

  3. sb. delete (0, sb. length () );

  4. sb. removeAll ();

Correct Answer: C

Question No.50

Given:

image

What is the result?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: B

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