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

valueOf() method

Let us understand valueOf() method valueOf() is used to convert different types of values to String type. String class has overloaded valueOf() methods for all the primitive types and for object type Signature of overloaded valueOf() methods public static String valueOf(boolean b) public static String valueOf(char c) public static String valueOf(char[] c) public static String […]

Share this article on
< Previous Next >