πŸ“Š JAVA
Q. How do you find the last index of a specified character in a string in Java?
  • (A) str.lastIndexOf(char)
  • (B) str.indexOf(char)
  • (C) str.findLast(char)
  • (D) str.search(char)
πŸ’¬ Discuss
βœ… Correct Answer: (A) str.lastIndexOf(char)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
96
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Shiva Ram
Publisher
πŸ“ˆ
96%
Success Rate