Question: 1-Consider the JavaFX methods getStyleClass() and handle() (the method required by the EventHandler interface). Which of the following is correct? a.getStyleClass() and handle() are both
1-Consider the JavaFX methods getStyleClass() and handle() (the method required by the EventHandler interface). Which of the following is correct?
a.getStyleClass() and handle() are both instance methods b.getStyleClass() and handle() are both static methods c.getStyleClass() is an instance method and handle() is a static method d.getStyleClass() is a static method and handle() is an instance method
2-Consider the JavaFX methods getStyleClass() and handle() (the method required by the EventHandler interface). Which of the following is correct?
a.getStyleClass() and handle() are both instance methods b.getStyleClass() and handle() are both static methods c.getStyleClass() is an instance method and handle() is a static method d.getStyleClass() is a static method and handle() is an instance method
3-Suppose Pirates exhibit different behavior according to the number of Pirates that have been instantiated in the application. One Pirate lurks in steerage, two Pirates attack lone sailors in the hold, and three or more Pirates try to take over a ship. What is the best way to keep track of the number of Pirates in the application?
a.Use an instance variable b.Make Pirate an abstract class c.Save each Pirate to a file using text file I/O and read the files when the Pirates need to decide what to do d.Use a static variable e.Use a lambda expression
4-A NullPointerException is caused by a
a.Syntax error b.Logic error c.Runtime error
5-Suppose you write code in Eclipse and see an error message informing you that you must deal with an unhandled IOException. The unhandled exception is a(n)
a.Checked exception b.Syntax error c.Recursive call d.Interface e.Stack overflow
6-Suppose your program measures the area of one side of an object in square meters when the specifications for the application stated that the value should be the volume of the object in cubic meters. This is a:
a.Logic error b.Runtime error c.Syntax error
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
