Java SE 8 Programmer 1Z0–808 Practice Full Test 1

© examsiri.com
Question : 21 of 84
 
Marks: +1, -0
Given the following code:
public static void main (String[] args) {
  String[] planets = {"Mercury", "Venus", "Earth", "Mars"};
  System.out.println (planets.length);
  System.out.println (planets[1].length()) ;
}
What is the output?
Go to Question: