Top 10 training materials 1z0-808 for IT candidates (111 to 120)

Once getting Oracle 1z0-808 school room training or perhaps when you find yourself totally pleased with your groundwork, simply subsequently sign up upon Prometric with regard to screening area in your own place. Applying 1z0-808 perform problems as well as appraisal applications together with setting up your Oracle 1z0-808 assessment is a great way to develop your performance. Our recommendation is that you make use of on line Oracle 1z0-808 assessment methods right at the end of this prep. You wont simply touch up your skills however may also help avoid inability.


The article at Testaimer.com going over http://www.testaimer.com/1z0-808-test is very comprehensive.

2017 Apr 1z0-808 exam fees

Q111. Given: 

class Cake { 

int model; 

String flavor; 

Cake() { 

model = 0; 

flavor = "Unknown"; 

public class Test { 

public static void main(String[] args) { 

Cake c = new Cake(); 

bake1(c); 

System.out.println(c.model + " " + c.flavor); 

bake2(c); 

System.out.println(c.model + " " + c.flavor); 

public static Cake bake1(Cake c) { 

c.flavor = "Strawberry"; 

c.model = 1200; 

return c; 

public static void bake2(Cake c) { 

c.flavor = "Chocolate"; 

c.model = 1230; 

return; 

What is the result? 

A. 0 unknown 0 unknown 

B. 1200 Strawberry 1200 Strawberry 

C. 1200 Strawberry 1230 Chocolate 

D. Compilation fails 

Answer:

Explanation: 1200 Strawberry 1230 Chocolate 


Q112. 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/ 


Q113. Given: 

public class TestField { 

int x; 

int y; 

public void doStuff(int x, int y) { 

this.x = x; 

y =this.y; 

public void display() { 

System.out.print(x + " " + y + " : "); 

public static void main(String[] args) { 

TestField m1 = new TestField(); 

m1.x = 100; 

m1.y = 200; 

TestField m2 = new TestField(); 

m2.doStuff(m1.x, m1.y); 

m1.display(); 

m2.display(); 

What is the result? 

A. 100 200 : 100 200 

B. 100 0 : 100 0 : 

C. 100 200 : 100 0 : 

D. 100 0 : 100 200 : 

Answer:


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


Q115. Given: 

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:


Far out 1z0-808 sample question:

Q116. Given: 

What is the result? 

A. C B A 

B. C 

C. A B C 

D. Compilation fails at line n1 and line n2 

Answer:


Q117. Given: 

What is the result? 

A. hEllOjAvA! 

B. Hello java! 

C. Out of limits hEllOjAvA! 

D. Out of limits 

Answer:


Q118. Given: 

class Base { 

// insert code here 

public class Derived extends Base{ 

public static void main(String[] args) { 

Derived obj = new Derived(); 

obj.setNum(3); 

System.out.println("Square = " + obj.getNum() * obj.getNum()); 

Which two options, when inserted independently inside class Base, ensure that the class is being properly encapsulated and allow the program to execute and print the square of the number? 

A. private int num; public int getNum() { return num; }public void setNum(int num) { this.num = num;} 

B. public int num; protected public int getNum() { return num; }protected public void setNum(int num) { this.num = num;} 

C. private int num;public int getNum() {return num;} private void setNum(int num) { this.num = num;} 

D. protected int num; public int getNum() { return num; } public void setNum(int num) { this.num = num;} 

E. protected int num; private int getNum() { return num; } public void setNum(int num) { this.num = num;} 

Answer: A,D 

Explanation: 

Incorrect: 

Not B: illegal combination of modifiers: protected and public 

not C: setNum method cannot be private. 

not E: getNum method cannot be private. 


Q119. Given: 

How many objects have been created when the line / / do complex stuff is reached? 

A. Two 

B. Three 

C. Four 

D. Six 

Answer:


Q120. Consider following method 

Which statement is true? 

A. This method is invalid. 

B. This method can be used only in an interface. 

C. This method can return anything. 

D. This method can be used only in an interface or an abstract class. 

E. None of above. 

Answer:

Explanation: 

Given method is declared as default method so we can use it only inside an interface. 

Hence option B is correct and option D is incorrect. 

Option A is incorrect as it is valid method. Option C is incorrect as return type is void, which 

means we can't return anything.