Given only the JavaFX code below, which of the following mos…

Given only the JavaFX code below, which of the following most accurately describes the behavior of the button? (assume that the code is correctly included in a JavaFX GUI with correct imports but no additional methods called on the button object) Button button = new Button(“Click me!”);button.setOnMouseClicked (    new EventHandler() {        @Override        public void handle(MouseEvent e) {            System.out.println(“Ouch!”);        }    });  

   ████      ████    ████████   ████████   ████████████████…

   ████      ████    ████████   ████████   ██████████████████████   ██████████████████████    ████████████████████      ████████████████        ████████████           ██████            STAY DETERMINED!

Write an equivalent lambda expression that implements the fu…

Write an equivalent lambda expression that implements the functional interface T1 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 Stardew {   public static void main(String[] args) {        Stardew myStardew = new Stardew ();        myStardew.doStuff(new T1() {            public double power(double base, double exp) {                return Math.pow(base, exp);            }        });    }    public void doStuff(T1 t1) {        System.out.println(t1.power(2, 9));    } } interface T1 {   public double power(double base, double exp); }  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 only the JavaFX code below, which of the following mos…

Given only the JavaFX code below, which of the following most accurately describes the behavior of the button? (assume that the code is correctly included in a JavaFX GUI with correct imports but no additional methods called on the button object) Button button = new Button(“Drink me!”); button.setOnAction(   new EventHandler() {        @Override        public void handle(ActionEvent e) {            System.out.println(“Slurp!”);        }    } );

Implement a class named QuestionBank that has two generic ty…

Implement a class named QuestionBank that has two generic types. The first generic type should be called S and the second generic type should be called T. Generic type S should ensure that the List interface has been implemented and parameterized for type S. This class should also contain a private field of type S named questions and a private field of type T named exam. No constructors or additional defining code is necessary. 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.