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
Explanation
Quick AnswerThe correct answer is int because it directly addresses the core logic of Java Programming.
This question has been retained as-is due to its unique context.