Q. To map a stream of strings to their uppercase form, which method reference is used?

  • (A) String::toLowerCase
  • (B) String::toUpperCase
  • (C) String::trim
  • (D) String::substring
πŸ’¬ Discuss
βœ… Correct Answer: (B) String::toUpperCase
Explanation: `String::toUpperCase` maps strings to uppercase.
Explanation by: Mr. Dubey
`String::toUpperCase` maps strings to uppercase.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
60
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
91%
Success Rate