Given:
3. public class Batman {
4. int squares = 81;
5. public static void main(String[] args) {
6. new Batman().go();
7. }
8. void go() {
9. incr(++squares);
10. System.out.println(squares);
11. }
12. void incr(int squares) { squares += 10; }
13. }
What is the result?
A. 81DRAG DROP
Select and Place:

Given:
1.
public class KungFu {
2.
public static void main(String[] args) {
3.
Integer x = 400;
4.
Integer y = x;
5.
x++;
6.
StringBuilder sb1 = new StringBuilder("123");
7.
StringBuilder sb2 = sb1;
8.
sb1.append("5");
9.
System.out.println((x==y) + " " + (sb1==sb2));
10.
}
11.
}
What is the result?
A. true trueDRAG DROP
Select and Place:

Given:
21.
class Money {
22.
private String country = "Canada";
23.
public String getC() { return country; }
24.
}
25.
class Yen extends Money {
26.
public String getC() { return super.country; }
27.
}
28.
public class Euro extends Money {
29.
public String getC(int x) { return super.getC(); }
30.
public static void main(String[] args) {
31.
System.out.print(new Yen().getC() + " " + new Euro().getC());
32.
}
33.
}
What is the result?
A. CanadaClick the Exhibit button. Given: ClassA a = new ClassA(); a.methodA(); What is the result?

Given:
11.
public class Test {
12.
public static void main(String [] args) {
13.
int x = 5;
14.
boolean b1 = true;
15.
boolean b2 = false;
16.
17.
if ((x == 4) andand !b2 )
18.
System.out.print("1 ");
19.
System.out.print("2 ");
20.
if ((b2 = true) andand b1 )
21.
System.out.print("3 ");
22.
}
23.
}
What is the result?
A. 2Given:
33.
try {
34.
// some code here
35.
} catch (NullPointerException e1) {
36.
System.out.print("a");
37.
} catch (Exception e2) {
38.
System.out.print("b");
39.
} finally {
40.
System.out.print("c");
41.
}
If some sort of exception is thrown at line 34, which output is possible?
A. aGiven:
3.
public class Breaker {
4.
static String o = "";
5.
public static void main(String[] args) {
6.
z:
7.
o = o + 2;
8.
for(int x = 3; x < 8; x++) {
9.
if(x==4) break;
10.
if(x==6) break z;
11.
o = o + x;
12.
}
13.
System.out.println(o);
14.
}
15.
}
What is the result?
A. 23Given:
11.
public class Commander {
12.
public static void main(String[] args) {
13.
String myProp = /* insert code here */
14.
System.out.println(myProp);
15.
}
16.
}
and the command line: java -Dprop.custom=gobstopper Commander
Which two placed on line 13, will produce the output gobstopper? (Choose two.)
A. System.load("prop.custom");Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Oracle exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 1Z0-851 exam preparations and Oracle certification application, do not hesitate to visit our Vcedump.com to find your solutions here.