Exam 7: Characters, Strings, and the Stringbuilder

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Why would you use the append() method? Provide an example.

(Essay)
4.7/5
(42)

A(n) ____ comparison is based on the integer Unicode values of the characters.

(Multiple Choice)
4.8/5
(37)

When working with Strings, it is necessary to explicitly set a String to null.

(True/False)
4.8/5
(33)

The method header of the equals() method within the String class is ____.

(Multiple Choice)
4.8/5
(32)

The String class ____________________ method is similar to the equals() method. As its name implies, this method ignores case when determining if two Strings are equivalent.

(Short Answer)
4.8/5
(35)

StringBuilder greeting = new StringBuilder("Welcome"); Create the append() method to add the characters "home" to the end of the StringBuilder object created above.

(Essay)
4.8/5
(33)

How is the String class equalsIgnoreCase() method like the equals() method and how would you use it? Give an example.

(Essay)
4.7/5
(36)

Match each term with the correct statement below. -Takes two integer arguments: a start position and an end position

(Multiple Choice)
4.9/5
(34)

A(n) ____ is a variable that holds a memory address.

(Multiple Choice)
4.8/5
(36)

How can you change the length of a String in a StringBuilder object?

(Essay)
4.8/5
(35)

The Character class ____ from java.lang.Object.

(Multiple Choice)
4.8/5
(37)

The ____ method lets you add characters at a specific location within a StringBuilder object.

(Multiple Choice)
4.9/5
(37)

The ____________________ method requires an integer argument that indicates the position of the character at that position, starting at 0.

(Short Answer)
4.8/5
(32)
Showing 61 - 73 of 73
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)