Answer the following statements true (T) or false (F)
1. If a class has a method named finalize, it is called automatically just before an instance of the class is destroyed by the garbage collector.
2. If a class has a method named finalize, it is called automatically just before an instance of the class is destroyed by the garbage collector.
3. If you write a toString method for a class, Java will automatically call the method any time you concatenate an object of the class with a string.
4. When an object is passed as an argument, it is actually a reference to the object that is passed.
1. TRUE
2. FALSE
3. TRUE
4. TRUE
You might also like to view...
Match the following terms to their meanings:
I. Brightness II. Contrast III. Sharpen IV. Soften A. the difference between the darkest and lightest area of a picture B. when the picture becomes fuzzier C. the perceived radiance or luminosity of an image D. when the clarity of an image increases
Method paintComponent is called when:
a. a lightweight Swing component is created. b. a lightweight Swing component is displayed. c. a lightweight Swing component is clicked. d. an application exits.