Master java skills

Strings in Java

String class belongs to java.lang package. The objects of String class are most frequently used in java programming language. In fact, it is almost impossible to write an executable java program without a String object.

The main method which is the entry point of any java program also takes an array of String objects as a parameter.

public static void main (String [] args){ }

Strings are sequence of characters.

“Arjun”, “Meera”, “ABC123”, “DEF$” are examples of String objects.

For more details, go to the next page