[Free] 2018(Jan) EnsurePass Testinsides Oracle 1z0-853 Dumps with VCE and PDF 111-120

By | January 25, 2018

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

Java Standard Edition 5 Programmer Certified Professional Exam

Question No: 111 – (Topic 2)

Which two statements are true about has-a and is-a relationships? (Choose two.)

  1. Interfaces must be used when creating a has-a relationship.

  2. Instance variables can be used when creating a has-a relationship.

  3. Inheritance represents a has-a relationship.

  4. Inheritance represents an is-a relationship.

Answer: B,D

Question No: 112 – (Topic 2)

Click the Exhibit button.

What is the outcome of the code?

Ensurepass 2018 PDF and VCE

  1. Scrumdiddlyumptious

  2. Compilation fails.

  3. Gobstopper Fizzylifting

  4. Scrumdiddlyumptious Fizzylifting

  5. Gobstopper Scrumdiddlyumptious

Answer: C

Question No: 113 – (Topic 2)

Given:

55. int [] x = {1, 2, 3, 4, 5};

  1. int y[] = x;

  2. System.out.println(y[2]); Which statement is true?

  1. Compilation will fail because of an error in line 55.

  2. Line 57 will print the value 2.

  3. Compilation will fail because of an error in line 56.

  4. Line 57 will print the value 3.

Answer: D

Question No: 114 – (Topic 2)

Which two code fragments will execute the method doStuff() in a separate thread? (Choose two.)

  1. new Thread(new Runnable() { public void run() { doStuff(); }

    }).run();

  2. new Thread() {

    public void start() { doStuff(); }

    };

  3. new Thread() {

    public void run() { doStuff(); }

    };

  4. new Thread(new Runnable() { public void run() { doStuff(); }

    }).start();

  5. new Thread() {

    public void start() { doStuff(); }

    }.run();

  6. new Thread() {

public void run() { doStuff(); }

}.start();

Answer: D,F

Question No: 115 – (Topic 2)

Click the Exhibit button. What is the result?

Ensurepass 2018 PDF and VCE

  1. third first second snootchy 420

  2. first second first third snootchy 420

  3. first second third snootchy 420

  4. snootchy 420 third second first

  5. snootchy 420 first second third

  6. third second first snootchy 420

Answer: F

Question No: 116 – (Topic 2)

A UNIX user named Bob wants to replace his chess program with a new one, but he is not sure where the old one is installed. Bob is currently able to run a Java chess program

starting from his home directory /home/bob using the command: java -classpath /test:/home/bob/downloads/*.jar games.Chess Bob#39;s CLASSPATH is set (at login time) to:

/usr/lib:/home/bob/classes:/opt/java/lib:/opt/java/lib/*.jar What is a possible location for the Chess.class file?

  1. /usr/lib/games/Chess.class

  2. /home/bob/Chess.class

  3. inside jarfile /opt/java/lib/Games.jar (with a correct manifest)

  4. /test/Chess.class

  5. /home/bob/games/Chess.class

  6. inside jarfile /home/bob/downloads/Games.jar (with a correct manifest)

  7. /test/games/Chess.class

Answer: G

Question No: 117 – (Topic 2)

Which four statements are true? (Choose four.)

  1. Is-a relationships can be implemented using the implements keyword.

  2. The relationship between Movie and Actress is an example of an is-a relationship.

  3. Is-a relationships can be implemented using the extends keyword.

  4. An array or a collection can be used to implement a one-to-many has-a relationship.

  5. Has-a relationships should be implemented using inheritance.

  6. Has-a relationships should never be encapsulated.

  7. Has-a relationships can be implemented using instance variables.

Answer: A,C,D,G

Question No: 118 DRAG DROP – (Topic 2)

Click the Task button.

Ensurepass 2018 PDF and VCE

Answer:

Ensurepass 2018 PDF and VCE

Question No: 119 – (Topic 2)

Given:

  1. class Animal { public String noise() { return quot;peepquot;; } }

  2. class Dog extends Animal {

  3. public String noise() { return quot;barkquot;; }

14. }

  1. class Cat extends Animal {

  2. public String noise() { return quot;meowquot;; }

17. }

  1. Animal animal = new Dog();

  2. Cat cat = (Cat)animal;

  3. System.out.println(cat.noise()); What is the result?

  1. An exception is thrown at runtime.

  2. peep

  3. bark

  4. meow

  5. Compilation fails.

Answer: A

Question No: 120 – (Topic 2)

Click the Exhibit button. Given:

  1. Test t = new Test();

  2. t.method(5);

What is the output from line 5 of the Test class?

Ensurepass 2018 PDF and VCE

  1. 24

  2. 5

  3. 10

  4. 17

  5. 12

Answer: C

100% Ensurepass Free Download!
Download Free Demo:1z0-853 Demo PDF
100% Ensurepass Free Guaranteed!
1z0-853 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

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