What will be the output of the following program?
public class Actor {
public static void main(String[] args) {
String data = "Salman Khan is an Indian actor";
char array[] = new char[data.length()];
array[0] = 'S'; array[1] = 'o';
array[2] = 'h'; array[3] = 'a';
array[4] = 'i'; array[5] = 'l';
data.getChars(6, data.length(), array, 6);
for (char element : array) {
System.out.print(element);
}
}
}