Multiple choice

How do you get the size of the String in Java?

  1. Length

  2. Length()

  3. Size()

  4. Get length()

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This answer is correct.This method is used to get the size of the String in Java.