Strings
Strings
For exmple in business order form a person enters details like his name,
credit card number address etc which are nothing but strings
String s=”Java”;
3. char arr[]={‘c’,’h’,’a’,’i’,’r’,’s’}
String s=new String(arr);
String class Methods:
1. String concat(String s)
String s3=s1.concat(s2);
String class objects are immutable and hence their contents cannot be
modified.