December 2006
Beginner
1500 pages
55h 41m
English
| 3.5 | What is the purpose of keyword new? Explain what happens when this keyword is used in an application. |
| 3.6 | What is a default constructor? How are an object’s instance variables initialized if a class has only a default constructor? |
| 3.7 | Explain the purpose of an instance variable. |
| 3.8 | Most classes need to be imported before they can be used in an application. Why is every application allowed to use classes System and String without first importing them? |
| 3.9 | Explain how a program could use class Scanner without importing the class from package java.util. |
| 3.10 | Explain why a class might provide a set method and a get method for an instance variable. |
| 3.11 | Modify class GradeBook (Fig. 3.10) as follows:
|
Read now
Unlock full access