(ii) "TRANSPARENT".compareTo("TRANSITION")
Answers
Answered by
8
Answer
A positive integer ( greater than 0 )
Explanation
The Java String compareTo() method is used for comparing two strings alphabetical order. It return integer value. If both the strings are equal then this method returns 0 else it returns either positive or negative value.
The statement "TRANSPARENT".compareTo("TRANSITION") will return a positive integer because the first string is alphabetically greater than the second string.
Answered by
20
Answer:7
Explanation:ascii value of P minus ascii value of I i.e. 80-73=7
Similar questions
Biology,
6 months ago
Math,
6 months ago
English,
6 months ago
Social Sciences,
11 months ago
Math,
11 months ago
Computer Science,
1 year ago
Biology,
1 year ago