Consider the following code, assuming word is a string, what does the code do?
A. tests if the String word contains only lower case letters
B. tests if the String word contains only upper case letters
C. tests if the String word contains only nonletter characters
D. tests if the String word contains only numeric values
Answer:B
Consider the following code, assuming word is a string, what does the code do?
A. tests if the String word contains only lower case letters B. tests if the String word contains only upper case letters C. tests if the String word contains only nonletter characters D. tests if the String word contains only numeric values