Write an equivalent lambda expression that implements the fu…

Write an equivalent lambda expression that implements the functional interface LT that could be used to replace the anonymous inner class given below. An example inner anonymous class implementation is given below. The body of the implementation must match the implementation given. Note: you only need to write the lambda expression NOT the entire block of code below. public class IsItSummerYet { public static void main(String[] args) { IsItSummerYet summerYet = new IsItSummerYet(); summerYet.check(new LT() { public boolean lt(float f1, float f2) { return f1 < f2; } }); } public void check(LT iface) { iface.lt(1.331f, 3.1415f); }}interface LT { public boolean lt(float f1, float f2);} Make sure to select the 'Preformatted' style from the dropdown so your code is formatted clearly. DO NOT USE THE TAB KEY WHEN WRITING CODE AS YOU MAY ACCIDENTALLY SUBMIT YOUR EXAM. USE THE SPACE BAR INSTEAD.

Given the class below, correctly override Object’s equals me…

Given the class below, correctly override Object’s equals method in this class, ensuring that it compares the full state of the object (i.e. the values of all data fields).Include the method header, curly braces, and implementation in your response. public class Tacos {     private boolean hardShell;     private String meat;     /* assume a valid constructor exists */     /* YOUR equals METHOD HERE */ } Make sure to select the ‘Preformatted’ style from the dropdown so your code is formatted clearly. DO NOT USE THE TAB KEY WHEN WRITING CODE AS YOU MAY ACCIDENTALLY SUBMIT YOUR EXAM. USE THE SPACE BAR INSTEAD.

Given the code, is TreasureNotFound a checked or unchecked e…

Given the code, is TreasureNotFound a checked or unchecked exception? Is MapIsIncorrect a checked or unchecked exception?  TreasureNotFound : [Item1] MapIsIncorrect: [Item2] class TreasureNotFound extends RuntimeException {   public TreasureNotFound(String msg) {       super(msg);     }  }  class MapIsIncorrect extends Exception {   public MapIsIncorrect(String msg) {       super(msg);     }  } 

Given abstract parent class Ball.java, write a concrete chil…

Given abstract parent class Ball.java, write a concrete child class that implements any necessary methods. You can pick any specific Ball type you want (e.g. football, soccer ball, tennis ball, etc). You do not have to provide method body statements for the method(s).  public abstract class Ball {     public abstract void inflate();     public int bounce(int howHigh) {         // do bouncing stuff     } }