Give the output of the following String class method: "COMMENCEMENT".lastIndex0f('M')
Advertisements
प्रश्न
Give the output of the following String class method:
"COMMENCEMENT".lastIndexOf('M')संक्षेप में उत्तर
Advertisements
उत्तर
8
Explanation:
The lastIndexOf('M') returns the index of the last occurrence of 'M' in the string.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
