Computer Applications
A string is:
- A set of letters
- A set of letters and digits
- A set of letters, digits and special characters
- All the above
Java String Handling
70 Likes
Answer
All the above
Reason — A string literal may consist of a set of letters, a set of letters and digits or a set of letters, digits and special characters.
Answered By
46 Likes
Related Questions
A string internally creates:
- An integer array
- A numeric array
- A character array
- A double type array
If a string contains 12 characters, what will be the index of the last character?
- 12
- 11
- 10
- 0
What will be the value stored in the variable 'c' if the following statement is executed?
c = "COMPUTER".charAt("COMPUTER ".indexOf('P'))- 3
- 4
- P
- M
Which of the following functions is used to remove leading and trailing white spaces from the string?
- trim( )
- trail( )
- truncate( )
- slice( )