CSIS 312 Quiz 3
- For
String c = “hello world”;
The Java statements
int i = c.indexOf(‘o’);
int j = c.lastIndexOf(‘l’);
will result in:
- String objects are immutable. This means they ________.
- Which of the following creates the string of the numbers from 1 to 1000 most efficiently?
- The String method substring returns ________.
- Which of the following are static Character methods?
- Which of the following statements is true?
- Consider the statements below:
- Which of the Java strings represent the regular expression ,\s*?
- Which of the following statements is true?
- The statement
s1.equalsIgnoreCase(s4)
is equivalent to which of the following?