Home
Browse
Create
Search
Log in
Sign up
Upgrade to remove ads
Only $2.99/month
Java Ch 7 Review
STUDY
Flashcards
Learn
Write
Spell
Test
PLAY
Match
Gravity
Terms in this set (30)
A String variable name is not a simple data type
true
The terms "literal string" and "string literal" are entirely different in Java
false
When you compare Strings with ==, you are comparing their values, not their memory adresses
false
When determining if a String is empty, it's easier to compare its length to 0 than use .equals
true
When using .equals(), a boolean comparison between 2 strings is returned
true
In a compareTo method, programmers often do not need specific return values
true
When working with Strings, it is necessary to explicitly set a String to null
false
Any string value that is input into a program can be used in arithmetic operations
false
The StringBuffer class is more efficient than StringBuilder bc it can execute multiple threads
false
A(n) ___ is a variable that holds a memory address.
reference
A ____ is a class for storing and manipulating changeable data that is composed of characters
StringBuilder
The methods of the Character class that begin with ___ return a converted character
to
The Character class ____ from java.lang.Object
inherits
A literal string is a(n) ___ object.
anonymous
Strings and other objects that can't be changed are known as ___.
immutable
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 =
equal()
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
compareTo()
The ___ method returns the length of a String
length()
The ___ method allows you to replace all occurrences of some character within a String
replace()
The ___ method converts any object to a String
toString()
To convert a String to an integer, you use the ___ class.
Integer
The ____ method takes a String argument and returns its double value
parseDouble()
A StringBuilder object contains a memory block called a ____
buffer
The creators of Java chose ___ characters as the "extra" length for a StringBuilder object.
16
The ___ method lets you add characters at a specific location within a StringBuilder object
insert()
You can tell that the equals() method takes a ___ argument bc () are used in the method call.
String
_____ is used to join Strings.
concatenation
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
40 terms
CIT FINAL (CH 6)
41 terms
Chapter 6: Looping
33 terms
Programming True False
21 terms
YOU MIGHT ALSO LIKE...
Java Ch07
38 terms
ch 7 java
39 terms
Java Chapter 7
36 terms
Java Chapter 7
36 terms
OTHER SETS BY THIS CREATOR
Spanish Final Vocab
226 terms
Mr. Brewer's Java: Ch. 7 Review Questions
20 terms
Strength Study Guide
23 terms
Unit 11 Vocab Camdyn Zook
20 terms