News

Java is a popular programming language with diverse applications. One of the essential tasks that a programmer needs to perform is to concatenate or join strings in Java. String concatenation simply ...
When creating an instance of the String class by assigning its reference to a literal, the latter is placed in the so-called "pool of literals". If in the future another reference to a literal ...
Method 1 is preferred as it is more memory efficient. When creating Strings using this method, Java will compare the string literal you pass in with the strings currently stored in the pool and if the ...
I have previously blogged on how Groovy and ActionScript provide demonstrations of switching on Strings functionality that has not been available in Java. JDK 7 changes this for Java by ...