McqMate
| Q. |
Given the code String s = new String("abc"); Which of the following call is not valid? |
| A. | s.trim(). |
| B. | s.replace('a', 'A'). |
| C. | s.substring (3). |
| D. | s.setCharAt (1,'A'). |
| Answer» B. s.replace('a', 'A'). | |
View all MCQs in
Java ProgrammingNo comments yet