What happens when you execute the following code? ArrayList…
What happens when you execute the following code? ArrayList list = new ArrayList(); list.add(“Apple”); list.add(“Banana”); list.add(“Apple”); System.out.println(list.lastIndexOf(“Apple”));