[Free] 2018(Jan) EnsurePass Dumpsleader Oracle 1z0-850 Dumps with VCE and PDF 121-130

Ensurepass.com : Ensure you pass the IT Exams
2018 Jan Oracle Official New Released 1z0-850
100% Free Download! 100% Pass Guaranteed!
http://www.EnsurePass.com/1z0-850.html

Java Standard Edition 5 and 6, Certified Associate Exam

Question No: 121 – (Topic 1)

Which two are true? (Choose two.)

  1. The javax.servlet package contains part of the servlet API.

  2. A servlet is an open source framework developed for creating web applications.

  3. A servlet is a Java class that executes within a web container.

  4. A servlet is a Java class that executes within a web browser.

  5. The servlet API is included in J2SE.

Answer: A,C

Question No: 122 – (Topic 1)

Which two are true about JavaScript and HTML? (Choose two.)

  1. HTML is displayed in a client-side environment.

  2. JavaScript must be deployed in a separate file from HTML.

  3. JavaScript runs only in a server-side environment.

  4. JavaScript has a function that can open a new browser window.

Answer: A,D

Question No: 123 – (Topic 1)

Click the Exhibit button. Which is the class name?

Ensurepass 2018 PDF and VCE

  1. name

  2. age

  3. Dog

  4. eat

  5. bark

    Answer: C

    Question No: 124 – (Topic 1)

    Given:

    1. class Test {

    2. public static void main(String args[]) {

    3. String str = quot;Hello!quot;;

    4. String str2 = quot;Bye!quot;;

    5. str = str2;

    6. str -= str2; 7.

  1. if ( str == str2 ) {

  2. System.out.println(quot;str = str2quot;);

  3. } else {

  4. System.out.println(quot;str != str2quot;);

12. }

13. }

14. }

What is the result?

  1. The code runs with no output.

  2. Compilation fails.

  3. str != str2

  4. str = str2

Answer: B

Question No: 125 – (Topic 1)

Click the Exhibit button. Which is true?

Ensurepass 2018 PDF and VCE

  1. Juku is a subclass of Hara.

  2. Every Juku has a reference to at least one Hara.

  3. Juku is a subclass of Hara and at least one other class.

  4. This is NOT a valid UML diagram.

  5. Juku implements the Hara interface.

Answer: D

Topic 2, Volume B

Question No: 126 – (Topic 2)

Which two classes make valid use of the ArrayList class in package java.util? (Choose two.)

  1. package java.util; public class Test {

    public static void main(String args[]) { ArrayList list = new ArrayList();

    }

  2. import java.util.ArrayList; public class Test {

    public static void main(String args[]) { ArrayList list = new ArrayList();

    }

  3. import java.util; public class Test {

    public static void main(String args[]) { ArrayList list = new ArrayList();

    }

  4. public class Test import java.util.ArrayList { public static void main(String args[]) { ArrayList list = new ArrayList();

    }

  5. public class Test {

    public static void main(String args[]) { java.util.ArrayList list = new java.util.ArrayList();

    }

  6. package java.util.ArrayList; public class Test {

public static void main(String args[]) { ArrayList list = new ArrayList();

}

Answer: B,E

Question No: 127 – (Topic 2)

Which is a valid abstract class?

  1. public abstract class Car { protected abstract void accelerate();

    }

  2. public abstract class Car { protected void accelerate();

    }

  3. public abstract class Car { protected abstract void accelerate() {

    // more code here

    }

  4. public interface Car {

    protected abstract void accelerate();

    }

  5. public abstract class Car { protected final void accelerate();

    }

    Answer: A

    Question No: 128 – (Topic 2)

    Given:

    1. class Test {

    2. public static void main(String[] args) {

    3. int num = 1;

    4. for (num = 0; num lt; 3; num ) { 5. num *= 2;

6. }

  1. System.out.println(quot;num = quot; (num )); 8. }

    9. }

    What is the result?

    1. num = 2

    2. num = 4

    3. num = 3

    4. num = 5

    5. Compilation fails.

Answer: C

Question No: 129 – (Topic 2)

You are asked to create a Dog class that exposes the Dog class String name and int breed to other code as read-only attributes, provides encapsulation, and adheres to the standard JavaBeans naming conventions.

Which approach implements these requirements?

  1. Provide public name() and public breed() methods in the Dog class, and mark the name and breed instance variables private.

  2. Provide private getName() and private getBreed() methods in the Dog class, and mark the name and breed instance variables

    private.

  3. Provide public getName() and public getBreed() methods in the Dog class, and mark the name and breed instance variables private.

  4. Provide private name() and private breed() methods in the Dog class, and mark the name and breed instance variables public.

  5. Provide public getName()/setName() and public getBreed()/setBreed() methods in the Dog class, and mark the name and breed

instance variables private.

Answer: C

Question No: 130 – (Topic 2)

Given:

  1. class A {

  2. public void methodX(int i) { /* some code */ }

  3. public String methodY(String s) { /* some code */ }

14. }

  1. class B extends A {

  2. public void methodX(int i) { /* some code */ }

  3. public String methodX(String s) { /* some code */ }

  4. public String methodY(String s) { /* some code */ }

19. }

Which two are true? (Choose two.)

  1. The methodY(String) in class B overrides methodY(String) in class A.

  2. The methodY(String) in class B overloads methodY(String) in class A.

  3. The methodX(String) in class B overrides methodX(int) in class A.

  4. The methodX(int) in class B overrides methodX(int) in class A.

  5. The methodX(int) in class A overloads methodX(String) in class B.

    Answer: A,D

    100% Ensurepass Free Download!
    Download Free Demo:1z0-850 Demo PDF
    100% Ensurepass Free Guaranteed!
    1z0-850 Dumps

    EnsurePass ExamCollection Testking
    Lowest Price Guarantee Yes No No
    Up-to-Dated Yes No No
    Real Questions Yes No No
    Explanation Yes No No
    PDF VCE Yes No No
    Free VCE Simulator Yes No No
    Instant Download Yes No No

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.