The number of characters in an object of a class String is given by?

  1. The member variable called length

  2. The method length() returns the number of characters.

  3. The member variable called size

  4. The method size() returns the number of characters.


Correct Option: B

Find more quizzes: