Which of the following is not a method of class String?

a. toUpperCase
b. trim
c. toCharacterArray
d. All of the above are methods of class String

c. toCharacterArray

Computer Science & Information Technology

You might also like to view...

Answer the following statements true (T) or false (F)

1) The initialization portion of a for loop header can be used to declare a variable that is used during loop execution. 2) The relational operators should not be used to test the equality of objects. 3) It is possible to implement a switch statement using if statements. 4) An infinite loop is a compile-time error. 5) The Scanner object can be used to read text files.

Computer Science & Information Technology

In a class containing methods with the same name, the methods are distinguished by ________.

a. Number of arguments b. Types of arguments c. Return type d. (a) and (b) e. (b) and (c)

Computer Science & Information Technology