Select the best code to utilize generics so that the class i…

Select the best code to utilize generics so that the class implements the Comparable interface correctly. public class Vegetable implements 1  {    private double price;  /* valid constructor */ public int compareTo( 2 arg) {   /* valid implementation */ }}    1   : [1]   2   : [2]

Airplane myPlane = new SonicJet(); Given the class hierarchy…

Airplane myPlane = new SonicJet(); Given the class hierarchy and code statement above, which of the following methods are allowed and are not allowed to be called on the myPlane variable? breakSoundBarrier() : [1]move() : [2] For each statement below, indicate which class provides the implementation of each of the methods called. myPlane.fly(); [3]myPlane.toString(); [4]