Computer Science, asked by RohitProGamer, 6 months ago

Give the output of the following java statements:
(i) "TRANSPARENT".substring(5);

(ii) "TRANSPARENT".compareTo("TRANSITION");​

Answers

Answered by nishamerin12
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