|
|
Ch 5 Questions #1 Enhancing classes |
|
|
|
1. Describe a null reference. How is a null reference implemented? 2. Describe the keyword "this" and its use in Java. Give an example. 3. What is the difference between a reference to a primitive type and a reference to an object? 4. Describe an alias? How does an alias relate to the difference between a reference to a primitive type versus an object? 5. Describe a situation where you might wish to pass an object as a parameter in a method. |
|