Q. Which method is used to find the index of the first occurrence of a specified character in a string in Java? (A) findIndex() (B) indexOf() (C) search() (D) findCharacter() ποΈ Show Answer π¬ Discuss π Share β‘Menu β Correct Answer: (B) indexOf()