Advertisements
Advertisements
प्रश्न
What is the output of the statement given below?
“ANGER”.compareTo(“ANGEL”)विकल्प
3
−6
6
0
MCQ
Advertisements
उत्तर
6
Explanation:
Here the compareTo() compares the strings “ANGEL” and “ANGER” and gives the difference in ASCII codes of the differentiating characters ‘L’ and ‘R’.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2024-2025 (March) Official Board
