10 tips on 1z0 808 pdf

Pinpoint of 1z0 808 book simulations materials and interactive bootcamp for Oracle certification for IT learners, Real Success Guaranteed with Updated java se 8 programmer i 1z0 808 pdf pdf dumps vce Materials. 100% PASS Java SE 8 Programmer I exam Today!

Q121. Given: 

abstract class A1 { 

public abstract void m1(); 

public void m2() { System.out.println("Green"); } 

abstract class A2 extends A1 { 

public abstract void m3(); 

public void m1() { System.out.println("Cyan"); } 

public void m2() { System.out.println("Blue"); } 

public class A3 extends A2 { 

public void m1() { System.out.println("Yellow"); } 

public void m2() { System.out.println("Pink"); } 

public void m3() { System.out.println("Red"); } 

public static void main(String[] args) { 

A2 tp = new A3(); 




What is the result? 

A. Yellow Pink Red 

B. Cyan Blue Red 

C. Cyan Green Red 

D. Compilation Fails 


Q122. Given: 

class MarksOutOfBoundsException extends IndexOutOfBoundsException { } 

public class GradingProcess { 

void verify(int marks) throws IndexOutOfBoundsException { 

if (marks > 100) { 

throw new MarksOutOfBoundsException(); 

if (marks > 50) { 


} else { 


public static void main(String[] args) { 

int marks = Integer.parseInt(args[2]); 

try { 

new GradingProcess().verify(marks)); 

} catch(Exception e) { 

System.out.print(e.getClass()); } } } 

And the command line invocation: 

Java grading process 89 50 104 

What is the result? 

A. Pass 

B. Fail 

C. Class MarketOutOfBoundsException 

D. Class IndexOutOfBoundsException 

E. Class Exception 


Explanation: The value 104 will cause a MarketOutOfBoundsException 

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


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 

Q124. Given: 

Which code fragment, when inserted at line 9, enables the code to print true? 

A. String str2 = str1; 

B. String str2 = new string (str1); 

C. String str2 = sb1.toString(); 

D. String str2 = “Duke”; 


Q125. Given: 

What is the result? 

A. 200.0 : 100.0 

B. 400.0 : 200.0 

C. 400.0 : 100.0 

D. Compilation fails. 


Q126. Given the code fragment: 

What is the result? 

A. true true 

B. true false 

C. false false 

D. false true 


Q127. Given: 

public class Painting { 

private String type; 

public String getType() { 

return type; 

public void setType(String type) { 

this.type = type; 

public static void main(String[] args) { 

Painting obj1 = new Painting(); 

Painting obj2 = new Painting(); 



System.out.print(obj1.getType() + " : " + obj2.getType()); 

What is the result? 

A. : Fresco 

B. null : Fresco 

C. Fresco : Fresco 

D. A NullPointerException is thrown at runtime 


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


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

Q129. Given the code fragment: 

What is the result? 

A. Jesse 25 Walter 52 

B. Compilation fails only at line n1 

C. Compilation fails only at line n2 

D. Compilation fails at both line n1 and line n2 


Q130. Given: 

What is the result? 

A. The program prints nothing 

B. d 

C. A StringIndexOutOfBoundsException is thrown at runtime. 

D. AnArrayIndexOutOfBoundsException is thrown at runtime. 

E. A NullPointerException is thrown at runtime.