ICSE Class 10 Computer Applications
Question 16 of 30
Solved 2024 Specimen Paper ICSE Class 10 Computer Applications — Question 16
Back to all questions0
Reason — compareTo() method compares two strings lexicographically and returns the difference between the ASCII values of the first differing characters in the strings. Here, the strings are equal so the difference is 0.