[Free] 2017(Jan) EnsurePass Braindumps Oracle 1z0-850 Dumps with VCE and PDF 151-160

Ensurepass.com : Ensure you pass the IT Exams
2017 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: 151 – (Topic 2)

Given:

  1. class Foo {

  2. public int fooInt = 6; 7. }

8.

  1. public class Bar {

  2. static int myInt = 7;

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

  4. // insert code here

  5. System.out.println(quot;myInt = quot; myInt);

14. }

15. }

Which, inserted at line 12, creates the output myInt = 42?

  1. Foo f = new Foo;

    myInt = myInt * f.fooInt;

  2. myInt = myInt * f.fooInt;

  3. myInt = myInt * fooInt;

  4. Foo f = new Foo(); myInt = myInt * f.fooInt;

  5. Foo f = Foo(); myInt = myInt * fooInt;

  6. Foo f = new Foo(); myInt = myInt * fooInt;

Answer: D

Question No: 152 – (Topic 2)

Which is true regarding multiplicity?

  1. It is used to indicate the number of instances of a class that may be associated with an instance of some other class.

  2. It is used to indicate which class some other class extends.

  3. It is used to show the interfaces implemented by a class.

  4. It is used to indicate of which class an object is an instance.

    Answer: A

    Question No: 153 – (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 = 4

    2. Compilation fails.

    3. num = 2

    4. num = 3

    5. num = 5

Answer: D

Question No: 154 – (Topic 2)

Which is true about RMI?

  1. RMI is used to create thin web clients.

  2. RMI is used to develop applications for wireless mobile devices.

  3. RMI is the Java API used for executing queries on a database.

  4. RMI allows objects to be sent from one computer to another.

  5. RMI is the transport protocol used by web servers and browsers.

    Answer: D

    Question No: 155 – (Topic 2)

    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. str != str2

  2. str = str2

  3. The code runs with no output.

  4. Compilation fails.

    Answer: D

    Question No: 156 – (Topic 2)

    Given two complete source files:

    1. /* Example.java */

    2. package pack;

    3. public class Example { }

  1. /* Test.java */

  2. // insert code here

  3. public class Test {

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

  5. Example obj = new Example(); 6. }

    7. }

    Which, inserted at line 2 in Test.java, allows the code to compile?

    1. import pack;

    2. The code compiles with no changes.

    3. import pack.Test;

    4. import pack.Example;

Answer: D

Question No: 157 – (Topic 2)

Which two are true? (Choose two.)

  1. SQL technology is used to access JMS queues from within EJB technology.

  2. SQL commands can be written in applications that use NO Java technologies.

  3. SQL allows you to modify multiple rows in a table with a single command.

  4. SQL is a web services technology used to parse large XML files.

  5. SQL commands cannot be contained in servlets.

Answer: B,C

Question No: 158 – (Topic 2)

What is the correct name for J2EE?

  1. Java 2 Package, Enterprise Edition

  2. Java 2 Platform, Enterprise Environment

  3. Java 2 Package, Enterprise Environment

  4. Java 2 Platform, Enterprise Edition

Answer: D

Question No: 159 – (Topic 2)

Which two are true? (Choose two.)

  1. Multiplicity indicators are optional, but if they are included they must be shown at both ends of an association.

  2. 2..4 is a valid multiplicity indicator.

  3. The multiplicity indicators and 1..* are equivalent.

  4. The multiplicity indicators * and 1..* are equivalent.

  5. Multiplicity indicators must always be shown at both ends of an association.

  6. An optional association is shown using the multiplicity indicator 0..1.

Answer: B,F

Question No: 160 – (Topic 2)

You are in a directory containing a file named StringTest.java. Which three are valid? (Choose three.)

  1. javac -v StringTest.java

  2. javac -v

  3. javac -version

  4. java -version

  5. javac -version StringTest.java

Answer: C,D,E

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

2017 EnsurePass IT Certification PDF and VCE

Leave a Reply

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