Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Java Programming Study Set 1
Quiz 7: Characters, Strings and the Stringbuilder
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 21
Multiple Choice
A literal string is called a(n) ____.
Question 22
Multiple Choice
Consider the statement: int anInt = Integer.parseInt("649") ; You can tell that parseInt() is a(n) ____ method because you use it with the class name and not with an object.
Question 23
Multiple Choice
The ____ class contains standard methods for testing the values of characters.
Question 24
Multiple Choice
The ____ method returns the length of a String .
Question 25
Multiple Choice
A StringBuilder object contains a memory block called a _____, which might or might not contain a string.
Question 26
Multiple Choice
To convert a String to an integer, you use the ____ class, which is part of java.lang and is automatically imported into programs you write.
Question 27
Multiple Choice
The String class ____ method is similar to the equals() method. As its name implies, this method does not consider case when determining if two String s are equivalent.
Question 28
Multiple Choice
The ____ method lets you add characters at a specific location within a StringBuilder object.
Question 29
Multiple Choice
The ____ method takes a String argument and returns its double value.
Question 30
Multiple Choice
String oneStr = "Welcome Jim" String twoStr = "Welcome Joe" Given the lines of code above, which of the following regionMatches() expressions will result in a value of true ?
Question 31
Multiple Choice
To alter just one character in a StringBuilder , you can use the ____ method, which allows you to change a character at a specified position within a StringBuilder object.
Question 32
Multiple Choice
Which of the following correctly declares and initializes a String object?
Question 33
Multiple Choice
Assume that aName refers to Roger. What is returned by aName.compareTo("Robert") ;
Question 34
Multiple Choice
The ____ method allows you to replace all occurrences of some character within a String .
Question 35
Multiple Choice
The ____ method requires an integer argument that indicates the position of the character at that position, starting at 0.
Question 36
Multiple Choice
The creators of Java chose ____ characters as the "extra" length for a StringBuilder object.
Question 37
Multiple Choice
The ____ method and the startsWith() method each take a String argument and return true or false if a String object does or does not end or start with the specified argument, respectively.