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

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: 81 – (Topic 1)

Given:

11. public class Yikes { 12.

  1. public static void go(Long n) {System.out.println(quot;Long quot;);}

  2. public static void go(Short n) {System.out.println(quot;Short quot;);}

  3. public static void go(int n) {System.out.println(quot;int quot;);}

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

  5. short y = 6;

  6. long z = 7;

  7. go(y);

  8. go(z);

21. }

22. }

What is the result?

  1. An exception is thrown at runtime.

  2. Short Long

  3. Compilation fails.

  4. int Long

    Answer: D

    Question No: 82 DRAG DROP – (Topic 1)

    Click the Task button.

    Ensurepass 2018 PDF and VCE

    Answer:

    Ensurepass 2018 PDF and VCE

    Question No: 83 – (Topic 1)

    Given:

    1. public class Threads2 implements Runnable { 2.

  1. public void run() {

  2. System.out.println(quot;run.quot;);

  3. throw new RuntimeException(quot;Problemquot;); 6. }

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

  2. Thread t = new Thread(new Threads2());

  3. t.start();

  4. System.out.println(quot;End of method.quot;);

11. }

12. }

Which two can be results? (Choose two.)

  1. java.lang.RuntimeException: Problem

  2. run.

    java.lang.RuntimeException: Problem

  3. End of method. java.lang.RuntimeException: Problem

  4. run.

    java.lang.RuntimeException: Problem End of method.

  5. End of method. run.

java.lang.RuntimeException: Problem

Answer: D,E

Question No: 84 – (Topic 1)

Given:

  1. public class Pass {

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

  3. int x = 5;

  4. Pass p = new Pass();

  5. p.doStuff(x);

  6. System.out.print(quot; main x = quot; x);

19. } 20.

  1. void doStuff(int x) {

  2. System.out.print(quot; doStuff x = quot; x );

23. }

24. }

What is the result?

  1. An exception is thrown at runtime.

  2. doStuff x = 6 main x = 6

  3. doStuff x = 5 main x = 5

  4. Compilation fails.

  5. doStuff x = 6 main x = 5

  6. doStuff x = 5 main x = 6

Answer: C

Question No: 85 – (Topic 1)

A class games.cards.Poker is correctly defined in the jar file Poker.jar. A user wants to execute the main method of Poker on a UNIX system using the command:

java games.cards.Poker

What allows the user to do this?

  1. put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include

    /stuff/java/*.jar

  2. put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include

    /stuff/java

  3. put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include

    /stuff/java/Poker.jar

  4. Put Poker.jar in directory /stuff/java, and set the CLASSPATH to include

    /stuff/java/Poker.jar

  5. put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java/*.jar

  6. put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java

Answer: D

Question No: 86 – (Topic 1)

Assuming that the serializeBanana() and the deserializeBanana() methods will correctly use Java serialization and given:

  1. import java.io.*;

  2. class Food implements Serializable {int good = 3;}

  3. class Fruit extends Food {int juice = 5;}

  4. public class Banana extends Fruit {

  5. int yellow = 4;

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

  7. Banana b = new Banana(); Banana b2 = new Banana();

  8. b.serializeBanana(b); // assume correct serialization

  9. b2 = b.deserializeBanana(); // assume correct

  10. System.out.println(quot;restore quot; b2.yellow b2.juice b2.good);

24. }

25. // more Banana methods go here 50. } What is the result?

  1. restore 403

  2. An exception is thrown at runtime.

  3. restore 453

  4. Compilation fails.

  5. restore 400

    Answer: C

    Question No: 87 – (Topic 1)

    Given classes defined in two different files:

    1. package util;

    2. public class BitUtils {

    3. public static void process(byte[]) { /* more code here */ } 4. }

  1. package app;

  2. public class SomeApp {

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

  4. byte[] bytes = new byte[256];

  5. // insert code here 6. }

    7. }

    What is required at line 5 in class SomeApp to use the process method of BitUtils?

    1. process(bytes);

    2. import util.BitUtils.*; process(bytes);

    3. BitUtils.process(bytes);

    4. SomeApp cannot use methods in BitUtils.

    5. util.BitUtils.process(bytes);

Answer: E

Question No: 88 – (Topic 1)

Given:

  1. String csv = quot;Sue,5,true,3quot;;

  2. Scanner scanner = new Scanner( csv );

  3. scanner.useDelimiter(quot;,quot;);

  4. int age = scanner.nextInt(); What is the result?

  1. After line 15, the value of age is 3.

  2. Compilation fails.

  3. An exception is thrown at runtime.

  4. After line 15, the value of age is 5.

    Answer: C

    Question No: 89 – (Topic 1)

    Given:

    1. class Super {

    2. private int a;

    3. protected Super(int a) { this.a = a; } 4. }

  1. class Sub extends Super {

  2. public Sub(int a) { super(a); }

  3. public Sub() { this.a = 5; }

14. }

Which two, independently, will allow Sub to compile? (Choose two.)

  1. Change line 2 to: protected int a;

  2. Change line 13 to: public Sub() { super(a); }

  3. Change line 13 to: public Sub() { this(5); }

  4. Change line 13 to: public Sub() { super(5); }

  5. Change line 2 to: public int a;

Answer: C,D

Question No: 90 – (Topic 1)

Given:

  1. class One {

  2. public One() { System.out.print(1); }

12. }

  1. class Two extends One {

  2. public Two() { System.out.print(2); }

15. }

  1. class Three extends Two {

  2. public Three() { System.out.print(3); }

18. }

  1. public class Numbers{

  2. public static void main( String[] argv ) { new Three(); }

21. }

What is the result when this code is executed?

A. 1

B. 321

  1. 3

  2. The code runs with no output.

E. 123

Answer: E

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.