Java Foundations Final Exam
Java Foundations Final Exam
13. A constructor is a special method which is commonly used to set the initial
values of an object’s fields.
___________________
true
14. How could you write the Employee constructor so that its parameters are named
the same as the fields they’re initializing?
21. In the following statements, how many employee objects are created?
_________________
3
24. An object must be instantiated before its non-static fields and methods can be
accessed.
_______________________
true
30. Each catch block is an exception handler that handles the type of exception
indicated by its argument.
___________________
true
48. How would you set the title of the Stage primaryStage?
_____________________
primaryStage.setTitle("New Title!");