Solved

Consider the Following Code Snippet

Question 95

Multiple Choice

Consider the following code snippet:
Coin coin1 = new Coin("dime", 0.10) ;
Coin coin2 = new Coin("dime", 0.10) ;
Which of the following statements is correct?


A) coin1 and coin2 contain references to the same object.
B) coin1 and coin2 refer to the same object.
C) coin1 and coin2 contain the same memory location.
D) coin1 and coin2 each have their own set of instance variables.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents