Java Methods Flashcards

(19 cards)

1
Q
  • a sequence of Unicode characters. - Unicode characters are encoding standard that has widespread acceptance. Some of the most commonly used character encodings are
A

String

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

Widely used in email systems and on the internet.

A

UTF - 8

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

Used in windows, Java and by JavaScript, and often for plain text and for word-processing data files on Windows.

A

UTF - 16

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

The mainly used in internal APIs where the data is single code points or glyphs, rather than strings of characters.

A

UTF - 32

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

In JavaScript strings are _____________ or ___________________.

A

In JavaScript strings are immutable or unchangeable.

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

method returns the size of the string.

A

length()

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

method will join the string with one or more strings.

A

concat()

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

method will remove the spaces from beginning and end of the strings.

A

trim()

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

methods will remove the spaces from the beginning of the strings.

A

trimStart() or trimLeft()

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

methods will remove the spaces from the beginning of the strings.

A

trimEnd() or trimRight()

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

method will replace the specified string into new string.

A

replace()

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

method will return the part of the strings.

A

substring()

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

method will return the part of the strings.

A

substr()

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

method will return the position of first occurrence of the specified string

A

indexOf()

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

method will return the position of last occurrence of the specified string

A

lastIndexOf()

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

method will return the part of the strings.

17
Q

method will convert string into array of strings.

18
Q

method will true if string includes the specified word else returns the false

19
Q
  • a collection of similar or different data types
    -Each elements has a numeric position, known as its index / indices, in the array
  • The index numbers start from zero
  • In JavaScript, it also an object. The typeof operator will return the same
  • object has length property which returns the total number of elements