Computer Applications
Give the output of the following statements:
String x[] = {"SAMSUNG", "NOKIA", "SONY", "MICROMAX", "BLACKBERRY"};
System.out.println(x[3].length());
Related Questions
Give the output of the following string functions:
"ACHIEVEMENT".replace('E', 'A')Give the output of the following string functions:
"DEDICATE".compareTo("DEVOTE")Give the output of the following:
String n = "Computer Knowledge"; String m = "Computer Applications"; System.out.println(n.substring(0,8).concat(m.substring(9))); System.out.println(n.endsWith("e"));
Give the output of the following statements:
String x[] = {"SAMSUNG", "NOKIA", "SONY", "MICROMAX", "BLACKBERRY"};
System.out.println(x[1]);