Upgrade to remove ads
Java Ch 7 Review
Terms in this set (30)
A String variable name is not a simple data type
The terms "literal string" and "string literal" are entirely different in Java
When you compare Strings with ==, you are comparing their values, not their memory adresses
When determining if a String is empty, it's easier to compare its length to 0 than use .equals
When using .equals(), a boolean comparison between 2 strings is returned
In a compareTo method, programmers often do not need specific return values
When working with Strings, it is necessary to explicitly set a String to null
Any string value that is input into a program can be used in arithmetic operations
The StringBuffer class is more efficient than StringBuilder bc it can execute multiple threads
A(n) ___ is a variable that holds a memory address.
A ____ is a class for storing and manipulating changeable data that is composed of characters
The methods of the Character class that begin with ___ return a converted character
The Character class ____ from java.lang.Object
A literal string is a(n) ___ object.
Strings and other objects that can't be changed are known as ___.
When you declare a variable such as int x = 10; the memory address where x is located holds the
value of 10
The String class ___ method evaluates the contents of two String objects to determine if they =
The method header of the equals() method within the String class is ____.
public boolean equals (String s)
The String class ____ method is used to compare two Strings
The ___ method returns the length of a String
The ___ method allows you to replace all occurrences of some character within a String
The ___ method converts any object to a String
To convert a String to an integer, you use the ___ class.
The ____ method takes a String argument and returns its double value
A StringBuilder object contains a memory block called a ____
The creators of Java chose ___ characters as the "extra" length for a StringBuilder object.
The ___ method lets you add characters at a specific location within a StringBuilder object
You can tell that the equals() method takes a ___ argument bc () are used in the method call.
_____ is used to join Strings.
Which of the following correctly declares and initializes a String object?
String greeting = "Hello";
THIS SET IS OFTEN IN FOLDERS WITH...
Java Review Questions Chapters 12-13
CIT FINAL (CH 6)
Chapter 6: Looping
Programming True False
YOU MIGHT ALSO LIKE...
ch 7 java
Java Chapter 7
Java Chapter 7
OTHER SETS BY THIS CREATOR
Spanish Final Vocab
Mr. Brewer's Java: Ch. 7 Review Questions
Strength Study Guide
Unit 11 Vocab Camdyn Zook