Output Questions for Class 10 ICSE Computer Applications
Give the output of the following statements:
String x[] = {"SAMSUNG", "NOKIA", "SONY", "MICROMAX", "BLACKBERRY"};
System.out.println(x[3].length());
Java
Java String Handling
ICSE 2017
29 Likes
Answer
8
Working
x[3].length()
gives the number of characters in the fourth element of the array x.
Answered By
15 Likes