Services
Discover
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Starting Out with Java Study Set 1
Exam 9: Text Processing and More About Wrapper Classes
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 21
Multiple Choice
Given the following, which of the statements below is not true? str.insert(8, 32) ;
Question 22
Multiple Choice
What is the value of str after the following code has been executed? String str; String sourceStr = "Hey diddle, diddle, the cat And the fiddle"; Str = sourceStr.substring(12,17) ;
Question 23
Multiple Choice
What are the tokens in the following statement? StringTokenizer st = new StringTokenizer("9-14-2018", "-", true) ;
Question 24
Multiple Choice
The String class's __________ method accepts a value of any primitive data type as its argument and returns a string representation of the value.
Question 25
True/False
If a non-letter is passed to the toLowerCase or toUpperCase method, it is returned unchanged.
Question 26
Multiple Choice
The __________ method of the String class can be used to tokenize a string.
Question 27
Multiple Choice
The ________ character appears at the end (the right side) of a string, after the non-space characters.
Question 28
True/False
StringBuilder objects are not immutable.
Question 29
Multiple Choice
The no-arg constructor for a StringBuilder object gives the object enough storage space to hold __________ characters.
Question 30
Multiple Choice
The term ________ commonly is used to refer to a string that is part of another string.
Question 31
Multiple Choice
The StringBuilder class's insert method allows you to insert a(n) __________ into the calling object's string.
Question 32
Multiple Choice
Each of the numeric wrapper classes has a static ________ method that converts a number to a string.
Question 33
Multiple Choice
In the following code, how many times will the for loop execute? String str = ("Ben and Jerry's ice cream is great.") ; String[ ] tokens = str.split(" ") ; For (String s : tokens) System.out.println(s) ;