-
-
-
-
The type of data returned by a method need not be compatible with the return type specified by the method
A) TrueB) FalseExplanation: The type of data returned by a method must be compatible with the return type specified by the method. For example, if the return type of some method is boolean, you could not return an integer
-
In return value; value is the value returned.
A) TrueB) False
-
-
-
In this example class-var = new classname( ); The class name followed by parentheses specifies the _________ for the class
A) VariablesB) ConstructorC) ObjectsD) Memory
-
-
Obtaining objects of a class is a ____ -step process
A) oneB) TwoC) ThreeD) FourExplanation: Obtaining objects of a class is a two-step process. First, you must declare a variable of the class type. This variable does not define an object. Instead, it is simply a variable that can refer to an object. Second, you must acquire an actual, physical copy of the object and assign it to that variable.
-
When we create a class, we are creating a new data type
A) TrueB) False
-
The new operator dynamically allocates memory for an object
A) TrueB) False
-
-
Which of the following are true?
A) The Void class extends the Class class.B) The Float class extends the Double class.C) The System class extends the Runtime class.D) The Integer class extends the Number class.