Quick Guide: java se 8 programmer i 1z0 808 dumps

Ucertify offers free demo for 1z0 808 java se 8 programmer i exam. “Java SE 8 Programmer I”, also known as 1z0 808 dumps pdf exam, is a Oracle Certification. This set of posts, Passing the Oracle 1z0 808 dumps exam, will help you answer those questions. The java se 8 programmer i 1z0 808 dumps Questions & Answers covers all the knowledge points of the real exam. 100% real Oracle exam 1z0 808 exams and revised by experts!

2017 NEW RECOMMEND

Free VCE & PDF File for Oracle 1z0-808 Real Exam
(Full Version!)

Pass on Your First TRY 100% Money Back Guarantee Realistic Practice Exam Questions

Free Instant Download NEW 1z0-808 Exam Dumps (PDF & VCE):
Available on:
http://www.certleader.com/1z0-808-dumps.html

Q61. Which of the following exception will be thrown due to the statement given here? 

int array[] = new int[-2]; 

A. NullPointerException 

B. NegativeArraySizeException 

C. ArrayIndexOutOfBoundsException 

D. IndexOutOfBoundsException 

E. This statement does not cause any exception. 

Answer:

Explanation: 

In given statement we can see that, we have passed negative value for creating int array, 

which results a NegativeArraySize Except ion. Hence option B is correct. 

Option A is incorrect as it is thrown when an application attempts to use null in a case 

where an object is required. 

Option D is incorrect as IndexOutOfBoundsException thrown to indicate that an index of 

some sort (such as to an array, to a string, or to a vector) is out of range. 

REFERENCE 

rhttpy/docs.oracle.com/iavase/S/docs/api/java/lang/NegativeArraySizeException.html 

Q62. Given the following class declarations: 

public abstract class Animal 

public interface Hunter 

public class Cat extends Animal implements Hunter 

public class Tiger extends Cat 

Which answer fails to compile? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

E. Option E 

Answer:

Explanation: Look at the right side of the declaration ArrayLIst() rather than ArrayList 

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

A. It cannot contain elements of different types. 

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

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

D. 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 

Q64. Given the following class: 

And given the following main method, located in another class: 

Which three lines, when inserted independently at line n1, cause the program to print a o balance? 

A. this.amount = 0; 

B. amount = 0; 

C. acct (0) ; 

D. acct.amount = 0; 

E. acct. getAmount () = 0; 

F. acct.changeAmount(0); 

G. acct.changeAmount(-acct.amount); 

H. acct.changeAmount(-acct.getAmount()); 

Answer: D,G,H 

Q65. The protected modifier on a Field declaration within a public class means that the field ______________. 

A. Cannot be modified 

B. Can be read but not written from outside the class 

C. Can be read and written from this class and its subclasses only within the same package 

D. Can be read and written from this class and its subclasses defined in any package 

Answer:

Reference: 

http://beginnersbook.com/2013/05/java-access-modifiers/ 

Q66. Given: 

What is the output? 

A. 2015-03-27 

B. 2015-04-27 

C. 2015-02-27 D. Compilation fails due to error at line 6. 

E. Compilation fails due to error at line 8. 

Answer:

Explanation: 

To create we have used following method with LocalDate class; 

public static LocalDate of(intyear, int month, int dayOfMonth) 

Here we need to remember that month is not zero based so if you pass 1 for month, then 

month will be January. 

Then we have used period object of 1 day and add to date object which makes current date 

to next day, so final output is 2015-03-27. Hence option A is correct. 

https://docs.oracle.com/javase/tutorial/datetime/iso/datetime.html 

Q67. Given: 

public class Test1 { 

static void doubling (Integer ref, int pv) { 

ref =20; 

pv = 20; 

public static void main(String[] args) { 

Integer iObj = new Integer(10); 

int iVar = 10; 

doubling(iObj++, iVar++); 

System.out.println(iObj+ ", "+iVar); 

What is the result? 

A. 11, 11 

B. 10, 10 

C. 21, 11 

D. 20, 20 

E. 11, 12 

Answer:

Explanation: The code doubling(iObj++, iVar++); increases both variables from to 10 to 

11. 

Q68. Given the code fragment: 

What is the result? 

A. 2 4 

B. 0 2 4 6 

C. 0 2 4 

D. Compilation fails 

Answer:

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

What is the result? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q70. Given: 

What is the result? 

A. Compilation fails 

B. The code compiles, but does not execute. 

C. Paildrome 

D. Wow 

E. Mom 

Answer:

Certleader Dumps
Certleader is a company specialized on providing high quality IT exam materials and fully committed to assist our respected clients crack any IT certification tests on their 1st efforts.