The significance of Oracle 1Z0-851 practice check lies in the significance of preparation for Oracle Oracle certification. Free downloadable Oracle 1Z0-851 exam dumps are usually offered at Testking internet site. You can visit our home web site and examine the interface, quality as well as usability of the Oracle check demos before buying. Youd better have a quiz to discover out your weak items. Testking is the merely one internet site which delivers the Oracle braindumps for all products. You can download the Oracle Oracle free check engine for the upgraded 1Z0-851 demos after paying.

2016 Nov oracle 1z0-851:

Q91. Given:

1. public class Base {

2. public static final String FOO = "foo";

3. public static void main(String[] args) {

4. Base b = new Base();

5. Sub s = new Sub();

6. System.out.print(Base.FOO);

7. System.out.print(Sub.FOO);

8. System.out.print(b.FOO);

9. System.out.print(s.FOO);

10. System.out.print(((Base)s).FOO);

11. } }

12. class Sub extends Base {public static final String FOO="bar";}

What is the result?

A. foofoofoofoofoo

B. foobarfoobarbar

C. foobarfoofoofoo

D. foobarfoobarfoo

E. barbarbarbarbar

F. foofoofoobarbar

G. foofoofoobarfoo

Answer: D


Q92. Given:

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");

B. System.getenv("prop.custom");

C. System.property("prop.custom");

D. System.getProperty("prop.custom");

E. System.getProperties().getProperty("prop.custom");

Answer: DE


Q93. Given

11. public interface Status {

12. /* insert code here */ int MY_VALUE = 10;

13. }

Which three are valid on line 12? (Choose three.)

A. final

B. static

C. native

D. public

E. private

F. abstract

G. protected

Answer: ABD


Q94. Given:

12. NumberFormat nf = NumberFormat.getInstance();

13. nf.setMaximumFractionDigits(4);

14. nf.setMinimumFractionDigits(2);

15. String a = nf.format(3.1415926);

16. String b = nf.format(2);

Which two statements are true about the result if the default locale is Locale.US? (Choose two.)

A. The value of b is 2.

B. The value of a is 3.14.

C. The value of b is 2.00.

D. The value of a is 3.141.

E. The value of a is 3.1415.

F. The value of a is 3.1416.

G. The value of b is 2.0000.

Answer: CF


Q95. Click the Exhibit button. What is the result?

A. Value is: 8

B. Compilation fails.

C. Value is: 12

D. Value is: -12

E. The code runs with no output.

F. An exception is thrown at runtime.

Answer: A


Update oracle 1z0-851:

Q96. Given:

11. public class PingPong implements Runnable {

12. synchronized void hit(long n) {

13. for(int i = 1; i < 3; i++)

14. System.out.print(n + "-" + i + " ");

15. }

16. public static void main(String[] args) {

17. new Thread(new PingPong()).start();

18. new Thread(new PingPong()).start();

19. }

20. public void run() {

21. hit(Thread.currentThread().getId());

22. }

23. }

Which two statements are true? (Choose two.)

A. The output could be 8-1 7-2 8-2 7-1

B. The output could be 7-1 7-2 8-1 6-1

C. The output could be 8-1 7-1 7-2 8-2

D. The output could be 8-1 8-2 7-1 7-2

Answer: CD


Q97. Given:

12. public class Test {

13. public enum Dogs {collie, harrier};

14. public static void main(String [] args) {

15. Dogs myDog = Dogs.collie;

16. switch (myDog) {

17. case collie:

18. System.out.print("collie ");

19. case harrier:

20. System.out.print("harrier ");

21. }

22. }

23. }

What is the result?

A. collie

B. harrier

C. Compilation fails.

D. collie harrier

E. An exception is thrown at runtime.

Answer: D


Q98. Given that: Gadget has-a Sprocket and Gadget has-a Spring and Gadget is-a Widget and Widget has-a

Sprocket Which two code fragments represent these relationships? (Choose two.)

A. class Widget { Sprocket s; }

class Gadget extends Widget { Spring s; }

B. class Widget { }

class Gadget extends Widget { Spring s1; Sprocket s2; }

C. class Widget { Sprocket s1; Spring s2; }

class Gadget extends Widget { }

D. class Gadget { Spring s; }

class Widget extends Gadget{ Sprocket s; }

E. class Gadget { }

class Widget extends Gadget{ Sprocket s1; Spring s2; }

F. class Gadget { Spring s1; Sprocket s2; }

class Widget extends Gadget{ }

Answer: AC


Q99. Given:

1. public class TestSeven extends Thread {

2. private static int x;

3. public synchronized void doThings() {

4. int current = x;

5. current++;

6. x = current;

7. }

8. public void run() {

9. doThings();

10. }

11.}

Which statement is true?

A. Compilation fails.

B. An exception is thrown at runtime.

C. Synchronizing the run() method would make the class thread-safe.

D. The data in variable "x" are protected from concurrent access problems.

E. Declaring the doThings() method as static would make the class thread-safe.

F. Wrapping the statements within doThings() in a synchronized(new Object()) { } block would make the

class thread-safe.

Answer: E


Q100. Given:

10. interface Foo { int bar(); }

11. public class Sprite {

12. public int fubar( Foo foo ) { return foo.bar(); }

13. public void testFoo() {

14. fubar(

15. // insert code here

16. );

17. }

18. }

Which code, inserted at line 15, allows the class Sprite to compile?

A. Foo { public int bar() { return 1; }

B. new Foo { public int bar() { return 1; }

C. new Foo() { public int bar() { return 1; }

D. new class Foo { public int bar() { return 1; }

Answer: C