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:

Verified
Correct Answer:
Verified
Q8: A class that has only accessor methods
Q9: A static method can have which of
Q13: An AssertionError will be generated under which
Q15: Consider the Checker class below. public class
Q16: The use of the static keyword in
Q17: Consider the partial class below: public class
Q39: What will have to change if the
Q47: A new method, getMonthName, to get the
Q66: Why is it generally considered good practice
Q85: A class (ClassOne) is considered to have