A

Admin • 828.43K Points
Coach

Q. What is the use of intern() method?

  • (A) To make string mutable
  • (B) To remove whitespace
  • (C) To store the string in the string pool
  • (D) To convert to uppercase

Explanation by: Admin
intern() ensures the string is added to the string pool.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.