You can save up to 25% of heap memory using latest java which means less cloud bills

Do you know that you can save up to 25% of your heap memory and your cloud bills without any effort?

Well, that’s true. Many exciting features have been added to the latest Java recently, and I’m going to cover one of them in this article, so please bear with me.

We all know, Strings are the most used object in any Java application. In fact, it takes up almost half of the heap size of a Java application. Did you know?

Before delving into this much further, let me answer your obvious question, which I know you’d ask: how are strings made of?

Well, Strings are nothing but an array of characters, well, at least it used to be. If you open the String class from JDK 8, you will be able to see it.

#java #string #java 11 #compact strings

Reclaim 25% of Java Heap Memory and Lower Your Cloud Bills
1.20 GEEK