Multiple Choice
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
Correct Answer:
Verified
Q23: A new class is proposed to collect
Q23: Which type of method modifies the object
Q24: Which of the following classifications of method
Q25: Which of the following describes an immutable
Q26: Judging by the name of the method,
Q27: What is the scope of a private
Q32: Which of the following are considered members
Q56: The String class is an example of
Q74: In which of the following cases could
Q88: Which of the following describes the first