We provide real 1z0 808 dumps pdf exam questions and answers braindumps in two formats. Download PDF & Practice Tests. Pass Oracle 1z0 808 pdf Exam quickly & easily. The java se 8 programmer i 1z0 808 PDF type is available for reading and printing. You can print more and practice many times. With the help of our Oracle java se 8 programmer i 1z0 808 pdf dumps pdf and vce product and material, you can easily pass the exam 1z0 808 exam.

Q111. Given: 

What is the result? 

A. 10 20 30 40 

B. 0 0 30 40 

C. Compilation fails 

D. An exception is thrown at runtime 

Answer:


Q112. Given the code fragment: 

for (int ii = 0; ii < 3;ii++) { 

int count = 0; 

for (int jj = 3; jj > 0; jj--) { 

if (ii == jj) { 

++count; 

break; 

System.out.print(count); continue; } 

What is the result? 

A. 011 

B. 012 

C. 123 

D. 000 

Answer:


Q113. Given: 

public class X { 

static int i; 

int j; 

public static void main(String[] args) { 

X x1 = new X(); 

X x2 = new X(); 

x1.i = 3; 

x1.j = 4; 

x2.i = 5; 

x2.j = 6; 

System.out.println( 

x1.i + " "+ 

x1.j + " "+ 

x2.i + " "+ 

x2.j); 

What is the result? 

A. 3 4 5 6 

B. 3 4 3 6 

C. 5 4 5 6 

D. 3 6 4 6 

Answer:


Q114. Given the code fragment: 

// insert code here 

arr[0] = new int[3]; 

arr[0][0] = 1; 

arr[0][1] = 2; 

arr[0][2] = 3; 

arr[1] = new int[4]; 

arr[1][0] = 10; 

arr[1][1] = 20; 

arr[1][2] = 30; 

arr[1][3] = 40; 

Which two statements, when inserted independently at line // insert code here, enable the code to compile? 

A. int [] [] arr = null; 

B. int [] [] arr = new int [2]; 

C. int [] [] arr = new int [2] [ ]; 

D. int [] [] arr = new int [] [4]; 

E. int [] [] arr = new int [2] [0]; 

F. int [] [] arr = new int [0] [4]; 

Answer: C,E 


Q115. Given the code fragment: 

Which modification enables the code to print 54321? 

A. Replace line 6 with System, out. print (--x) ; 

B. At line 7, insert x --; 

C. Replace line 6 with --x; and, at line 7, insert system, out. print (x); 

D. Replace line 12 With return (x > 0) ? false: true; 

Answer:


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


Q117. Given: 

public class Test { 

public static void main(String[] args) { 

int ax = 10, az = 30; 

int aw = 1, ay = 1; 

try { 

aw = ax % 2; 

ay = az / aw; 

} catch (ArithmeticException e1) { 

System.out.println("Invalid Divisor"); 

} catch (Exception e2) { 

aw = 1; 

System.out.println("Divisor Changed"); 

ay = az /aw; // Line 14 

System.out.println("Succesful Division " + ay); 

What is the result? 

A. Invalid Divisor 

Divisor Changed 

Successful Division 30 

B. Invalid Divisor 

Successful Division 30 

C. Invalid Divisor 

Exception in thread "main" java.lang.ArithmeticException: / by zero 

at test.Teagle.main(Teagle.java:14) 

D. Invalid Divisor 

Exception in thread "main" java.lang.ArithmeticException: / by zero 

at test.Teagle.main(Teagle.java:14) 

Successful Division 1 

Answer:


Q118. Given: 

A. a, e 

i, o 

B. a, e 

o, o 

C. e, e 

I, o 

D. e, e 

o, o 

Answer:


Q119. Given the code fragment: 

What is the result? 

A. Match 1 

B. Match 2 

C. No Match 

D. A NullPointerException is thrown at runtime. 

Answer:

Explanation: 

it will compare the string contents of the StringBuilder with string object. 


Q120. Given: 

What is the result? 

A. 6 7 8 

B. 7 8 9 

C. 0 1 2 

D. 6 8 10 

E. Compilation fails 

Answer: