We are given an array, A: [ 15, 25, 7, 0, -7] After first pa…

We are given an array, A: [ 15, 25, 7, 0, -7] After first pass of the selection sort that moves the smallest element in its correct place after each pass, A will be : [ [a], [b], [c], [d], [e] ] Note: Only add one element of the array in one rectangular box above. 

What is the output of the following program? public class Fr…

What is the output of the following program? public class Fruit{ public void myMethod() { System.out.println(“Fruit”); } } public class Apple extends Fruit{ public void myMethod() { System.out.println(“Apple”); } public static void main(String[] args) { Apple apple = new Fruit(); apple.myMethod(); } }