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
Options
- ABob's Name: Bob
- BBob's Name: Jian
- CNothing prints
- DBob's name
How the community answered
(31 responses)- A3% (1)
- B74% (23)
- C6% (2)
- D16% (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.

