I make Constructor of String as–
class TestString {
public static void main(String args[]) {
int arr[]={1,5,6,8,9};
String str3 = new String(arr,1,3);//public java.lang.String(int[], int, int);
System.out.println(str3);
}
}
output is in image I can’t understand its meaning….
You’ve created a string consisting of three Unicode code points, U+0005, U+0006 and U+0008, and I bet your output is showing exactly that (it is on my machine).
edit Your console is using a particular font to render the output. Apparently, the font contains the suit pictograms for characters with codes 5 and 6. I recognize these as going back all the way to the original IBM PC: http://www.ascii-codes.com/