Give the output of the following java statements:
(i) "TRANSPARENT".substring(5);
(ii) "TRANSPARENT".compareTo("TRANSITION");
Answers
Answered by
1
Explanation:
1) SPARENT
2) SITION
Here after 5, there is no number given after that so the characters are extracted till the end.
Similar questions
Math,
3 months ago
History,
3 months ago
India Languages,
6 months ago
Political Science,
6 months ago
Social Sciences,
10 months ago
English,
10 months ago
English,
10 months ago