Consider the following code snippet: public class RewardPointsAccount
{
Private int currentRewardPointBalance;
Private static int level1Cutoff = 15000;
) ..
}
If a program instantiates four objects using this class, which of the following statements will be true?
A) Each object will have a currentRewardPointBalance instance variable and a level1Cutoff instance variable.
B) All objects will share a single currentRewardPointBalance class variable and a level1Cutoff class variable.
C) Each object will have a currentRewardPointBalance instance variable, but all objects will share a level1Cutoff class variable.
D) All objects will share a currentRewardPointBalance class variable and each object will have a level1Cutoff instance variable.
Correct Answer:
Verified
Q58: When are statements in a class-level static
Q69: What will have to change if the
Q72: Which of the following statements generally describes
Q73: Consider the following code snippet: public class
Q74: Under which of the following conditions must
Q75: What is the scope of a private
Q77: Which of the following are considered members
Q78: Under which of the following conditions can
Q79: Which of the following names would be
Q85: Which class does not require an import
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents