Java - Arrays
What will be the output of this code snippet?
String[] fruits = {"Apple", "Banana", "Cherry"};
System.out.println(fruits.length);String[] fruits = {"Apple", "Banana", "Cherry"};
System.out.println(fruits.length);15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions