[Free] 2018(Jan) EnsurePass Testinsides Oracle 1z0-808 Dumps with VCE and PDF 151-160

By | January 25, 2018

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

Java SE 8 Programmer I

Question No: 151

Given the code fragment int var1 = -5;

int var2 = var1-; int var3 = 0;

if (var2 lt; 0) { var3 = var2 ;

} else {

var3 = -var2;

}

System.out.println(var3);

What is the result?

  1. – 6

  2. – 4

  3. – 5

  4. 5

  5. 4

  6. Compilation fails

Answer: C

Question No: 152

Given the code fragment:

Ensurepass 2018 PDF and VCE

Assume that the system date is June 20, 2014. What is the result?

Ensurepass 2018 PDF and VCE

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Answer: A

Question No: 153

Given the definitions of the MyString class and the Test class:

Ensurepass 2018 PDF and VCE

What is the result?

Ensurepass 2018 PDF and VCE

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Answer: C

Question No: 154

Given:

public class Marklist { int num;

public static void graceMarks(Marklist obj4) { obj4.num = 10;

}

public static void main(String[] args) { MarkList obj1 = new MarkList(); MarkList obj2 = obj1;

MarkList obj1 = null; obj2.num = 60; graceMarks(obj2);

}

}

How many objects are created in the memory runtime?

  1. 1

  2. 2

  3. 3

  4. 4

Answer: B

Explanation: obj1 and obj3.

when you do e2 = e1 you#39;re copying object references – you#39;re not making a copy of the object – and so the variables e1 and e2 will both point to the same object.

Question No: 155

Given:

Ensurepass 2018 PDF and VCE

What is the result?

A. 11, 21, 31, 11, 21, 31

B. 11, 21, 31, 12, 22, 32

C. 12, 22, 32, 12, 22, 32

D. 10, 20, 30, 10, 20, 30

Answer: D

Question No: 156

Given the code fragments:

Ensurepass 2018 PDF and VCE

What is the result?

  1. Super Sub

    Sub

  2. Contract Contract Super

  3. Compilation fails at line n1

  4. Compilation fails at line n2

Answer: D

Question No: 157

Which two statements are true for a two-dimensional array of primitive data type?

  1. It cannot contain elements of different types.

  2. The length of each dimension must be the same.

  3. At the declaration time, the number of elements of the array in each dimension must be specified.

  4. All methods of the class object may be invoked on the two-dimensional array.

Answer: C,D

Explanation: http://stackoverflow.com/questions/12806739/is-an-array-a-primitive-type-or- an-object-or-something-else-entirely

Question No: 158

Which two are Java Exception classes?

  1. SercurityException

  2. DuplicatePathException

  3. IllegalArgumentException

  4. TooManyArgumentsException

Answer: A,C

Question No: 159

Given the code fragment:

Ensurepass 2018 PDF and VCE

What is the result?

A. 10 : 10

B. 5 : 5

C. 5 : 10

D. Compilation fails

Answer: A

Question No: 160

Given:

Ensurepass 2018 PDF and VCE

  1. a, e i, o

  2. a, e o, o

  3. e, e I, o

  4. e, e o, o

Answer: B

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