R

Ritu Nagar • 4.39K Points
Extraordinary

Q. How do you find the index of the last occurrence of a substring in a string in Java?

  • (A) str.findLast(substring)
  • (B) str.lastIndexOf(substring)
  • (C) str.lastIndexOfChar(substring)
  • (D) str.indexOf(substring)
  • Correct Answer - Option(B)
  • Views: 116
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics