Create a free account on Computer Sir Ki Class and unlock access to valuable learning resources.
Exam Paper Downloads: After registering and logging in, you can download exam question papers in PDF format to practice and prepare for your exams.
Student Support: Get assistance with your doubts, queries, and questions related to your studies. Our support is here to help you understand topics and resolve your learning difficulties.
Register today and make your exam preparation easier and more effective!
String x[] = {“SAMSUNG”, “NOKIA”, “SONY” , “MICROMAX”, “BLACKBERRY”};
Give the output of the following statements:
i) System.out.println(x[1]);
ii) System.out.println(x[3].length());
Answer:
Given Array is
String x[] = {“SAMSUNG”, “NOKIA”, “SONY” , “MICROMAX”, “BLACKBERRY”};
i) System.out.println(x[1]);
Will print NOKIA as it is the member at index 1.
ii) System.out.println(x[3].length()); [2]
Will print 8 as member at index 3 is MICROMAX and length of this member is 8.
C. Sir| Created: 28-Mar-2018 | Updated: 22-Mar-2026|ICSE2017