Showing posts with label string class. Show all posts
Showing posts with label string class. Show all posts

Tuesday, 21 January 2014

Exploring the string class

how to use string classes:creating string

String class:

Strings, which are widely used in Java programming, are a sequence of characters. In the Java programming language, strings are objects.One very important thing to notice about String is that String object are immutable that means once a String object is created, its contents cannot be altered. However if you need to change a String, you can do it by creating a new String object.. string you create is actually an object of type String. Even string constants are actually String objects.