ICSE Class 10 Computer Applications
Question 14 of 30
Solved 2024 Question Paper ICSE Class 10 Computer Applications — Question 19
Back to all questions6
Reason — The given Java code declares and initializes a String array color with three elements. The array elements are:
color[0] = "Blue"color[1] = "Red"color[2] = "Violet"
The method length() returns the number of characters in the string "Violet".