?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Easy

Substring with Two Parameters

APCSA-K8LVM8

Consider the expression:

String str = word.substring(0, 4);

How many characters are in str?

A

1

B

2

C

3

D

4

E

5