Answer the following statements true (T) or false (F)
1) The CompareTo method returns a positive number if the invoking string
is less than the argument, a negative number if the invoking string is greater and a 0 if they are the same.
2) The StartsWith and EndsWith methods see if a string starts or ends with
the given character or string.
3) The IndexOf method returns the indices of all occurrences of the given string.
4) Method LastIndexOf is used to find the last occurrence of given text in a
string.
5) The LastIndexOfAny method scans through the array of characters
backwards.
1) F
2) T
3) F
4) T
5) T
You might also like to view...
Which of the following statements is false?
a. A subclass is often larger than its superclass. b. A superclass object is a subclass object. c. The class following the extends keyword in a class declaration is the direct superclass of the class being declared. d. Java uses interfaces to provide the benefits of multiple inheritance.
C++11 introduced the __________ key word to help prevent subtle errors when overriding virtual functions.
a. const b. final c. override d. virtual e. None of these
Common dial-up RAS clients include Windows 98, 2000, XP, Vista, and 7.
Answer the following statement true (T) or false (F)
When you drag a statement from the editing area to the clipboard, Alice copies that statement into the editing area.
Answer the following statement true (T) or false (F)