Start learning →

What task is carried out by the indexOf method on a string?

AReverse
BFind
CReplace
DFormat
Answer & Solution
Correct answer: B. Find
The indexOf method acts as a find routine locating substrings or characters.
Practise this question with Quill — ICSE Class 10 →

Keep practising String Handling and Wrapper Classes

Browse all String Handling and Wrapper Classes questions for ICSE Class 10, or explore more Computer Applications topics.

Start a String Handling and Wrapper Classes lesson →