4 Written questions
4 Multiple choice questions
- a variable takes precedence over another variable with the same name.
- reside in packages that must be explicitly imported into your programs.
- attempt to declare a variable twice—an illegal action.
- refers to an object's memory address.
4 True/False questions
Package → the portion of a program within which you can refer to the variable.
Scope → the portion of a program within which you can refer to the variable.
Wildcard symbol → a symbol such as an asterisk used to indicate that it can be replaced by any set of characters. In a Java import statement, you use this symboll to represent all of the classes in a package.
this reference → a reference to an object that is passed to any object's nonstatic class method.