Home
Download App
Study Material
{{ shortTitle }}
Video Lessons
Practice Tests
Ask Doubts
Pricing
JOIN NOW
Computer Applications
Give the output of the following string functions:
"MISSISSIPPI".indexOf('S') + "MISSISSIPPI".lastIndexOf('I')
"CABLE".compareTo("CADET")
Java
Java String Handling
ICSE 2016
40 Likes
Answer
2 + 10 = 12
ASCII Code of B - ASCII Code of D
⇒ 66 - 68
⇒ -2
Answered By
19 Likes