Proper study guides for Down to date Oracle Java SE 8 Programmer I certified begins with Oracle java se 8 programmer i 1z0 808 preparation products which designed to deliver the Printable java se 8 programmer i 1z0 808 dumps questions by making you pass the java se 8 programmer i 1z0 808 pdf test at your first time. Try the free java se 8 programmer i 1z0 808 pdf demo right now.

Q11. Given the code fragment: 

What is the result? 

A. 1:2:3:4:5: 

B. 1:2:3: 

C. Compilation fails. 

D. An ArrayoutofBoundsException is thrown at runtime. 

Answer:


Q12. Which usage represents a valid way of compiling java source file with the name "Main"? 

A. javac Main.java 

B. java Main.class 

C. java Main.java 

D. javac Main 

E. java Main 

Answer:

Explanation: The compiler is invoked by the javac command. When compiling a Java class, you must include the file name, which houses the main classes including the Java extension. So to run Main.java file we have to use command in option A. TO execute Java program we can use Java command but can't use it for compiling. https://docs.oracle.com/javase/tutorial/getStarted/application/index.html 


Q13. Given the code fragment: 

A. Super Sub Sub 

B. Contract Contract Super 

C. Compilation fails at line n1 

D. Compilation fails at line n2 

Answer:


Q14. Given: 

package p1; 

public class Test { 

static double dvalue; 

static Test ref; 

public static void main(String[] args) { 

System.out.println(ref); 

System.out.println(dvalue); 

What is the result? 

A. p1.Test.class 

0.0 

B. <the summary address refrenced by ref> 0.000000 

C. Null 

0.0 

D. Compilation fails 

E. A NullPointerException is thrown at runtime 

Answer:


Q15. Given the code fragment: 

Which three code fragments can be independently inserted at line nl to enable the code to print one? 

A. Byte x = 1; 

B. short x = 1; 

C. String x = "1"; 

D. Long x = 1; 

E. Double x = 1; 

F. Integer x = new Integer ("1"); 

Answer: A,B,F 


Q16. Given: 

What is the result? 

A. Base DerivedA 

B. Base DerivedB 

C. DerivedB DerivedB 

D. DerivedB DerivedA 

E. A classcast Except ion is thrown at runtime. 

Answer:


Q17. Given the for loop construct: 

for ( expr1 ; expr2 ; expr3 ) { 

statement; 

Which two statements are true? 

A. This is not the only valid for loop construct; there exits another form of for loop constructor. 

B. The expression expr1 is optional. it initializes the loop and is evaluated once, as the loop begin. 

C. When expr2 evaluates to false, the loop terminates. It is evaluated only after each iteration through the loop. 

D. The expression expr3 must be present. It is evaluated after each iteration through the loop. 

Answer: B,C 

Explanation: 

The for statement have this forms: 

for (init-stmt; condition; next-stmt) { 

body 

There are three clauses in the for statement. 

The init-stmt statement is done before the loop is started, usually to initialize an iteration 

variable. 

The condition expression is tested before each time the loop is done. The loop isn't 

executed if the boolean expression is false (the same as the while loop). 

The next-stmt statement is done after the body is executed. It typically increments an 

iteration variable. 


Q18. Given the code fragment: 

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

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


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


Q20. Given: 

What is the result? 

A. Area is 6.0 

B. Area is 3.0 

C. Compilation fails at line n1 

D. Compilation fails at line n2. 

Answer: