0/120

Java

Given the string "strawberries" saved in a variable called fruit, what would `fruit.substring(2, 5)` return?

**Reasoning:** The substring method is accepting two arguments.

1.

rawb

2.

raw

3.

awb

4.

traw

5.

undefined

6.

undefined

7.

undefined

8.

undefined

9.

undefined

Q 1 / 120

Press C to Clear

Press R to Reset

Press N or Enter to Next or Check answer

Press 1,2,3, ... to toggle answers