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
Physics,
4 months ago
Computer Science,
4 months ago
India Languages,
9 months ago
Political Science,
9 months ago
Social Sciences,
1 year ago
English,
1 year ago
English,
1 year ago