MCQOPTIONS
Saved Bookmarks
| 1. |
Which of the following returns the first characters of the string str? |
| A. | str.charAt(0); |
| B. | str.substring(1); |
| C. | str.charAt(1); |
| D. | str.charAt(2); |
| Answer» B. str.substring(1); | |