nerdexam
Oracle

1Z0-809 · Question #24

Given: public class ScopeTest { int j, int k; public static void main(String[] args) { ew ScopeTest().doStuff(); } void doStuff1() { int x = 5; doStuff2(); System.out.println("x"); } void doStuff2()…

The correct answer is A. j B. k. You've hit your session limit · resets 5:20pm (America/New_York)

Question

Given: public class ScopeTest { int j, int k; public static void main(String[] args) { ew ScopeTest().doStuff(); } void doStuff1() { int x = 5; doStuff2(); System.out.println("x"); } void doStuff2() { System.out.println("y"); } int y = 7; System.out.println("y"); for (int z = 0; z < 5; z++) { System.out.println("y"); System.out.println("z"); } Which two items are fields?

Options

  • Aj
  • Bk
  • Cx
  • Dy
  • Ez

How the community answered

(60 responses)
  • A
    73% (44)
  • C
    3% (2)
  • D
    17% (10)
  • E
    7% (4)

Explanation

You've hit your session limit · resets 5:20pm (America/New_York)

Community Discussion

No community discussion yet for this question.

Full 1Z0-809 Practice