What can be the parameters for the indexOf method in String class?
Answer options
A
String
B
int
C
float
D
double
Correct answer: String, int
Explanation
Quick AnswerThe correct answer is String, int because it directly addresses the core logic of Java Programming.
Correct answer: String; int.