QA. Choose the appropriate state of the colorMap. a. {Juliet -> ROSE} b. {Romeo
ID: 3853464 • Letter: Q
Question
QA. Choose the appropriate state of the colorMap.
a. {Juliet -> ROSE}
b. {Romeo -> MIDNIGHT}
c. {Juliet -> ROSE, Romeo -> MIDNIGHT}
d. {} // empty map
a. {Juliet -> ROSE}
b. {Romeo -> MIDNIGHT}
c. {Juliet -> ROSE, Romeo -> MIDNIGHT}
d. {} // empty map
a. {Juliet -> ROSE}
b. {Romeo -> MIDNIGHT}
c. {Juliet -> ROSE, Romeo -> MIDNIGHT}
d. {} // empty map
a. {Juliet -> ROSE}
b. {Romeo -> MIDNIGHT}
c. {Juliet -> ROSE, Romeo -> MIDNIGHT}
d. {} // empty map
Explanation / Answer
Question 1 :
C : {Juliet -> ROSE,Romeo -> MIDNIGHT}
EXPLANATION: Map is an Interface hashmap is an class
2 : Answer
A : { Juliet -> ROSE }
Explanation : previously we inserted value to the Juliet key and now you are trying to assign new value to the same key so this put method adds our new value and it returnd old value
Question 3 :
Answer : B
Question 4 :
Answer : A
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.