An example of passing a message to a String where the message has a String parameter occurs in which of the following messages?
a) length
b) substring
c) equals
d) toUpperCase
e) none of the above, it is not possible to pass a String as a parameter in a message to a String
Answer: c. Explanation: The length and toUpperCase messages do not have parameters and substring has two int parameters. For equals, a String must be passed as a parameter so that the String receiving the message can be compared to the String passed as a parameter.