nerdexam
Oracle

1Z0-803 · Question #45

View the exhibit: What is the result when this program is executed?

The correct answer is B. Bob's Name: Jian. After the statement jian = bob; the jian will reference the same object as bob.

Working with Methods and Encapsulation

Question

View the exhibit:

What is the result when this program is executed?

Exhibits

1Z0-803 question #45 exhibit 1
1Z0-803 question #45 exhibit 2

Options

  • ABob's Name: Bob
  • BBob's Name: Jian
  • CNothing prints
  • DBob's name

How the community answered

(31 responses)
  • A
    3% (1)
  • B
    74% (23)
  • C
    6% (2)
  • D
    16% (5)

Explanation

After the statement jian = bob; the jian will reference the same object as bob.

Topics

#object creation#constructors#instance variables#method invocation

Community Discussion

No community discussion yet for this question.

Full 1Z0-803 Practice