Across
- 4. (1) to demote a variable from a larger capacity data type to a smaller one. (2) to re-establish the class of an object. The cast associates itself with the expression to its immediate right.
- 5. A statement that creates a variable, method, or class identifier and its associated attributes but doesn't necessarily allocate storage for variables or define an implementation for methods. Classes are always defined when they are declared, i.e., a class cannot be declared and then have its body defined elsewhere.
- 6. Similar to a declaration except that it also reserves storage (for variables) or provides implementations (for methods).
- 7. A variable defined with a primitive data type: byte, short, int, long, float, double, char, or boolean.
- 8. Programs require memory to run. Memory for objects is allocated by the keyword new. When objects are no longer used or your program terminates, Java automatically frees the used memory for other uses.
- 10. the use of a variable in the right hand side of an assignment statement.
- 11. to set the data of a variable (involves the equal sign).
- 14. a variable or object passed into a method.
Down
- 1. To allocate storage for an object in memory (involves the keyword new).
- 2. A special type of instance method that creates a new object. In Java, constructors have the same name as their class and have no return value in their declaration.
- 3. The principal code building block of Java programs. Each object in a program consists of both variables (data) and methods (functionality).
- 9. an assignment that sets the starting value of a variable.
- 12. A class describes a particular kind of object. It can contain related methods and data members (variables). A class must have the same name as the file it is contained in.
- 13. a collection of code found within a class. If the data members of a class are nouns, the methods are the verbs (the action).
