Exam Code: 1z0 808 java se 8 programmer i (Practice Exam Latest Test Questions VCE PDF)
Exam Name: Java SE 8 Programmer I
Certification Provider: Oracle
Free Today! Guaranteed Training- Pass 1z0 808 java se 8 programmer i Exam.


♥♥ 2021 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.surepassexam.com/1z0-808-exam-dumps.html

Q91. Which statement is/are true? 

I. Default constructor only contains "super();" call. 

II. We can't use any access modifier with a constructor. 

III. A constructor should not have a return type. 

A. Only I. 

B. Only II. 

C. Only I and II. 

D. Only I and III. 

E. AIL 

Answer:

Explanation: 

Statement I is correct as the default constructor only contains super0 call 

Statement II is incorrect as we can use any access modifier with a constructor. 

Statement III is correct as constructor can't have return type, even void. 

So option D is correct. 

httpsy/docs.oracle.com/javase/tutorial/iava/javaOO/construaors.html 


Q92. 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:


Q93. Given the code fragment: 

What is the result? 

A. Execution terminates in the first catch statement, and caught a RuntimeException is printed to the console. 

B. Execution terminates In the second catch statement, and caught an Exception is printed to the console. 

C. A runtime error is thrown in the thread "main". 

D. Execution completes normally, and Ready to us. is printed to the console. 

E. The code fails to compile because a throws keyword is required. 

Answer:


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


Q95. Given the code fragment: 

What is the result? 

A. A B C 

B. A B C D E 

C. A B D E 

D. Compilation fails. 

Answer:


Q96. Given the fragment: 

What is the result? 

A. 13480.0 

B. 13480.02 

C. Compilation fails 

D. An exception is thrown at runtime 

Answer:


Q97. public class ForTest { 

public static void main(String[] args) { 

int[] arrar = {1,2,3}; 

for ( foo ) { 

Which three are valid replacements for foo so that the program will compiled and run? 

A. int i: array 

B. int i = 0; i < 1; i++ 

C. ;; 

D. ; i < 1; i++ 

E. ; i < 1; 

Answer: A,B,C 


Q98. Given: 

What is the result? 

A. Marrown 

String out of limits 

JesOran 

B. Marrown 

String out of limits 

Array out of limits 

C. Marrown 

String out of limits 

D. Marrown 

NanRed 

JesOran 

Answer:


Q99. Given: 

What is the result? 

A. x: 1 y: 2 

B. 3 y: 4 

C. x: 0 y: 0 

D. 3 y: 4 

E. x: 1 y: 2 

F. 0 y: 0 

G. x: 0 y: 0 

H. 0 y: 0 

Answer:


Q100. Given: 

public class Natural { 

private int i; 

void disp() { 

while (i <= 5) { 

for (int i=1; i <=5;) { 

System.out.print(i + " "); 

i++; 

i++; 

public static void main(String[] args) { 

new Natural().disp(); 

What is the result? 

A. Prints 1 2 3 4 5 once 

B. Prints 1 3 5 once 

C. Prints 1 2 3 4 5 five times 

D. Prints 1 2 3 4 5 six times 

E. Compilation fails 

Answer:

Explanation: 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5