B is correct, setName(string name) shadow instance variable, not modified, if had another name this variable in mehtod setName(String otherName), then name of instance is modified. So print only "GREEN"
This section is not available anymore. Please use the main Exam Page.1z0-819 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
aruni_mishra
7 months, 3 weeks agod7bb0b2
1 year agoOmnisumem
1 year, 4 months agoStavok
1 year, 7 months agoMukes877
1 year, 8 months agoSuperDabicho
1 year, 9 months agoJGR_77
1 year, 10 months agoRP384
2 years agoNokuL
2 years agoUcefSoft
2 years, 2 months agoLeksh_geeth
2 years, 2 months ago