?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Easy

String Length

APCSA-M8B1EB

Consider the following.

String city = "Baltimore";

What is the value of city.length()?

A

7

B

8

C

9

D

10

E

11