//Strings Demo
class StringDemo{
	public static void main(String [] args)
	{
		char chr[] = {'j','a','v','a'};
		
		//Creating string and initilizing it in constructor.
		String str = new String(chr);
		System.out.println(str);
		
		//Creating string form particular index
		String str1 = new String(chr,1,2);
		System.out.println(str1);
		
		//java 
		
	}
}

@@ -1,19 +1,4 @@
-//Strings Demo%0A
 clas
@@ -147,16 +147,72 @@
 ructor.%0A
+%09%09//if we modify array the string will remain uncahnged%0A
 %09%09String
@@ -383,13 +383,423 @@
 %09%09//
-java 
+String length %0A%09%09System.out.println(str1.length());%0A%09%09%0A%09%09//Java%E2%80%99s char type uses 16 bits to represent the basic Unicode character set, %0A%09%09// Internet uses arrays of 8-bit bytes constructed from the%0A%09%09//ASCII character set%0A%09%09%0A%09%09byte char_set%5B%5D = %7B65,67,76,73,84,86%7D;//Ascii values%0A%09%09String str2 = new String(char_set);%0A%09%09System.out.println(str2);%0A%09%09String str3 = new String(char_set,1,4);%0A%09%09System.out.println(str3);
 %0A%09%09%0A

Update StringDemo.java