KnowledgeBoat Logo
|

Computer Applications

The output of "Remarkable".substring(6) is:

  1. mark
  2. emark
  3. marka
  4. able

Java String Handling

ICSE Sp 2024

30 Likes

Answer

able

Reason — "Remarkable".substring(6) will extract a substring starting from the character at index 6 (i.e., 7th character of the string) which is 'a' till the end of the string. Hence the output is able.

Answered By

17 Likes


Related Questions