Java String intern(): Interesting Q & A

intern() is an interesting function in java.lang.String object. intern() function eliminates duplicate string objects from the application and has potential to reduce overall memory consumption of your application. In this post, let's learn more about this intern() function. 1. How does the String intern() function work?  In Java heap memory, a pool of string objects... Continue Reading →

Powered by WordPress.com.

Up ↑