Computer Applications
The trim() method of the String class removes …………… .
- leading spaces only
- trailing spaces only
- spaces in between words
- leading and trailing spaces
Related Questions
While using the toLowerCase() method on a string containing special characters, …………… .
- the special characters remain unaffected.
- the special characters are converted to spaces.
- the special characters are converted to null character.
- the special characters are removed from the string.
The index of a string …………… .
- ranges from 0 to the length -1 of the string
- ranges from 0 to the length of the string
- ranges from 1 to the length of the string
- ranges from 1 to the length -1 of the string
The indexOf() method returns the position of the …………… .
- first occurrence of the specified character
- last occurrence of the specified character
- null character
- '\n' character
The return type of the equals() method is …………… .
- int
- char
- boolean
- void