单项选择题

String对象中,实现查找子字符串首次出现的位置是()

A.indexOf方法
B.lastIndexOf方法
C.split方法
D.replace方法