The intern() method is utilized to check the canonical presentation of the string object.
Method Definition: String intern()
Return Type: It returns the canonical presentation of the string object.
GeeksforGeeks, A CS portal.
My name is Nidhi, i am an author.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.