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