Q. What does the length() method of a String object in Java return?

  • (A) The capacity of the string
  • (B) The size of the string
  • (C) The length of the string
  • (D) The index of the last character
πŸ’¬ Discuss
βœ… Correct Answer: (C) The length of the string

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
160
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Neelam Mittal
Publisher
πŸ“ˆ
89%
Success Rate