Give the output of the following String class method: "devote". compareTo("DEVOTE")
Advertisements
प्रश्न
Give the output of the following String class method:
"devote". compareTo("DEVOTE")थोडक्यात उत्तर
Advertisements
उत्तर
32
Explanation:
The compareTo() function compares two strings and returns the difference in their ASCII codes.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
