Solved

Consider the Following Code Snippet: Public Class RewardPointsAccount

Question 73

Multiple Choice

Consider the following code snippet: public class RewardPointsAccount
{
Private int currentRewardPointBalance;
Private int level1Cutoff = 15000;
Public static void main (String [] args)
{
Int level1Cutoff = 15000;
If (blnEliteCustomer)
{
This.Level1Cutoff = 12500;
) . .
}
}
Which of the following statements is true?


A) It is illegal to declare the level1Cutoff variable within the main method
B) The code within the main method changes the value of the instance variable level1Cutoff for elite customers
C) The level1Cutoff variable within the main method does not change the level1Cutoff instance variable for elite customers
D) The level1Cutoff class variable shadows the level1Cutoff variable within the main method

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