Consider the JavaFX program segment below. // Assume many im…

Consider the JavaFX program segment below. // Assume many import statements here                                           public class ExamFX extends Application {                                          private Button but1,but2,but3;                                                                                                                                  public void start(Stage primaryStage) {                                            HBox hBox = new HBox(15); // param is spacing between items                     but1 = new Button(“Falcons”);                                                   but2 = new Button(“Braves”);                                                    but3 = new Button(“Hawks”);                                                     hBox.getChildren().addAll(but1,but2,but3);                                      ButtonHandler handler = new ButtonHandler();                                    but1.setOnAction(handler);                                                      but2.setOnAction(handler);                                                      but3.setOnAction(handler);                                                                                                                                      Pane pane = new Pane();                                                         pane.getChildren().add(hBox);                                                   Scene scene = new Scene(pane);                                                  primaryStage.setTitle(“FX Problem”);                                            primaryStage.setScene(scene);                                                   primaryStage.show();                                                         }                                                                                                                                                               private class ButtonHandler implements EventHandler {                 public void handle(ActionEvent ae) {                                               Button b = (Button) ae.getSource();                                             if (b == but1)                                                                     System.out.println(“Football”);                                              else if (b == but2)                                                                System.out.println(“Baseball”);                                              else if (b == but3)                                                                System.out.println(“Basketball”);                                            b.setText(“Winner”);                                                         }                                                                            }                                                                                                                                                              public static void main(String[] args) {                                          launch(args);                                                                 }                                                                             } Which of the following best describes what happens to the interface when the user clicks on one of the buttons?

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 Dog {   private String name;    private int age;    /* 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.