<code>"abcdef".substring(2)</code> returns
- A
bcdef
- B
abcdef
- C
abc
- Dcheck_circle
cdef
Explanation
<code>substring(start)</code> returns from index <code>start</code> to end; index 2 is 'c'.
AP Computer Science A· difficulty 3/5
<code>"abcdef".substring(2)</code> returns
bcdef
abcdef
abc
cdef
Explanation
<code>substring(start)</code> returns from index <code>start</code> to end; index 2 is 'c'.
Want 10 more like this — adaptive to your weak spots?