charact Flashcards

1
Q

A class whose instances can hold a single character value and whose methods manipulate and inspect single-character data

A

Character

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A class for working with fixed-string data—that is, unchanging data composed of multiple characters

A

String

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Classes for storing and manipulating changeable data composed of multiple characters

A

StringBuilder and StringBuffer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

is a named object of the String class.

A

String Variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Strings are ______ (cannot be changed)

A

immutable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

a comparison based on the integer Unicode values of character

A

a lexicographical comparison –

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  • ignores case when determining if two Strings are equivalent.
A

equalsIgnoreCase()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

-to compare two Strings, it provides additional information to the user in the form of an integer value

A

compareTo()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  • convert any String to its uppercase or lowercase equivalent.
A

toUpperCase() & toLowerCase()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  • _____ - is an accessor method that returns the length of a String
A

length()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

______- determines whether a specific character occurs within a String.

A

indexOf()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

requires an integer argument that indicates the position of the character that the method returns, starting with 0.

A

charAt()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

methods 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. It is also case sensitive

A

endsWith() and startsWith()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

allows you to replace all occurrences of some character within a String. It is also case sensitive.

A
  • replace() -
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

method is defined for other classes to convert their objects to strings. (Not part of String class but a part of Object class). You can also use concatenation to convert any primitive type to a
string using + operator

A

toString()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

_______ - is a class or object that is “wrapped around” a simpler element.

A

Wrapper

17
Q

the method takes a String argument and returns its integer and double value respectively.

A

parseInt() & parseDouble() method -

18
Q

always adds these characters (argument) at the end of the buffer and builder.

A

append()

19
Q

adds these characters (argument) at a specified point.

A

insert() -