May 2026 Dumps
Accenture Mock 2026mediumMay 2026 DumpsProgramming

How can we find the length of a string in Java?

Answer options

A
length()
B
size()
C
len
D
length

Correct answer: length()

Explanation

In Java, String length is retrieved via the length() method.

Related Accenture May 2026 Dumps questions

Practice more Accenture May 2026 Dumps questions

PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.