Consider the method in the following code snippet: public void getRewardPoints()
{
System.out.println("Your Reward Points balance is now " + pointBalance) ;
}
Which of the following statements would not be a valid criticism of the design of this method?
A) It violates the design rule of minimizing the coupling of classes.
B) It assumes that the message will always need to be in English.
C) It might not work in an embedded system.
D) It should not be a separate method since it is only one line long.
Correct Answer:
Verified
Q3: Which of the following is a true
Q14: Which of the following would be an
Q17: Given the following class definition, which of
Q20: Which of the following questions should you
Q21: Judging by the name of the method,
Q26: Which of the following classifications of method
Q27: Which of the following is true regarding
Q29: Why can't Java methods change parameters of
Q30: In Java, which of the following mechanisms
Q31: Which of the following can potentially be
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