A.an implementation of an abstraction. B.an attribute defining the property of a particular abstraction. C.a category of objects. D.an operation defining the behavior for a particular abstraction. E.a blueprint for making operations.
1. public class X { 2. public object m () { 3. object o = new float (3.14F); 4. object [] oa = new object [1]; 5. oa[0]= o; 6. o = null; 7. oa[0] = null; 10. return o; 9. } 10. } When is the float object created in line 3, eligible for garbage collection?()
A. Just after line 5. B. Just after line 6. C. Just after line 7. D. Just after line 8(that is, as the method returns).
public class MethodOver { private int x, y; private float z; public void setVar(int a, int b, float c){ x = a; y = b; z = c; } } Which two overload the setVar method?()
A. void setVar (int a, int b, float c){ x = a; y = b; z = c; } B. public void setVar(int a, float c, int b) { setVar(a, b, c); } C. public void setVar(int a, float c, int b) { this(a, b, c); } D. public void setVar(int a, float b){ x = a; z = b; } E. public void setVar(int ax, int by, float cz) { x = ax; y = by; z = cz; }