String Immutability

One of the interesting concepts about String is its Immutability. Yes, String is immutable in Java and what does it really means? It means, we can’t modify the String object. What !! then how can we use Strings in our application without modifying it ? Sometime we need to concatenate the string and sometime we […]

Share this article on

String split()

This method returns an array of string by splitting the given string into multiple words based on the specified delimiter or regular expression. Sometime, in our application we may need to divide or split the string based on some special characters like “|” or empty space and in all such cases we can use split() […]

Share this article on
< Previous Next >